ID:159963
 
I was wondering how they worked. Byond doesn't display my real ipsite so nobody can join but it does allow them to connect if they know it.


I was wondering if the world.port and world.address could work to fix this problem.

Thanks!
world.port, obviously, shows the port the game is hosted on.

world.address displays an IP address... however, for most people, this IP address tends to be the internal IP address such as 127.0.01, 192.168.X.X, etc. which only the localroot can access.

To display the external IP address, which people can join, you can do one of two things:

1) Host in Dream Daemon. It tells your external IP address and you could copy it by clicking oto (or I may be thinking of another program...)

2) Use the world.internet_address to obtain the external IP address - which people need to access your game.
In response to GhostAnime
For more general solutions, you could also run a quick Windows command-line command (ipconfig or winipcfg or maybe others, depending on your OS) or go to a site like http://www.whatismyip.org (or .com).
In response to Kaioken
Hm, I forgot about those >_> Thanks for mentioning them :o