+1 vote

Hey all,

I'd like to be able to get the public IP address of a server, from the server. I'm using NetworkedMultiplayerENet. How would I go about this?

in Engine by (172 points)

2 Answers

0 votes
Best answer
by (1,879 points)
selected by
0 votes

var upnp = UPNP.new()
upnp.discover(2000, 2, "InternetGatewayDevice")

by (14 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.