HostIP question
BlitzMax Forums/BlitzMax Programming/HostIP question
| ||
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? |
| ||
Print HostIp("www.blitzmax.com") Print HostIp("207.229.146.85") Print HostIp("localhost") Print HostIp("127.0.0.1") -807038379 -807038379 2130706433 2130706433 |
| ||
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 :) |
| ||
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. |