HostIP question

BlitzMax Forums/BlitzMax Programming/HostIP question

*(Posted 2007) [#1]
Does HostIp always return the local IP addresses or the IP of the machine your connecting to?

If it returns the machine your connecting to is there a way of getting the local IP addresses?


Chris C(Posted 2007) [#2]
Print HostIp("www.blitzmax.com")
Print HostIp("207.229.146.85")
Print HostIp("localhost")
Print HostIp("127.0.0.1")

-807038379
-807038379
2130706433
2130706433


*(Posted 2007) [#3]
Ah I see, I thought it was something like the original Blitz3d's where you could get the IP of the local machine. Seeing as you can use it like that it will be VERY handy :)


FlameDuck(Posted 2007) [#4]
If it returns the machine your connecting to is there a way of getting the local IP addresses?
For this to work reliably you need to connect to an outside machine (like myip.dk) and read back the IP from that.