Hey, I was wondering..how would you go about grabbing the current client's ( src.client's ) external IP? I just need some way to connect the world to the client, but I can't do that because client.address returns the client's internal IP ( if they're on a router ) where as world.address returns the world's external IP (I'm on a router. ). How could you go about doing this? ( If not grabbing external IP, is there another way to connect 'em? )
EDIT:
And yes, I know comparing client.address and world.address won't work.
I tried this:
world/New()
..()
OpenPort()
mob/Login()
..()
world << "[client.address == world.address ? "True" : "False"]"
output: "False"
Edit2:
I swear, they changed the tags around on me. ^_^
1.) Their IP is "127.0.0.1", which is pretty much localhost
2.) Their IP is the same as the world.address, which happens when you are in a LAN, or you join using your external IP
3.) Their IP is null
Do just do those three checks. If one of them are true, they are the host.
~~> Dragon Lord