Getting local ip address?
BlitzMax Forums/BlitzMax Programming/Getting local ip address?
| ||
| Hi people. I have problem gettin the local ip address. I use this code: Local s:TSocket = CreateTCPSocket() Local i:Int = SocketLocalIP(s) Print String(i) When i see the print the value of i is 0. If i use this: Local i[] = HostIps("localhost") The size of i is only 1 "127.0.0.1" How i can get my local ip address or a list of that? Really thanks. |
| ||
This should give your LAN IP:Strict
Local a:int[] = HostIps("")
For Local n:int = 0 To Len(a) - 1
Print DottedIP(a[n])
Next |
| ||
| Really thanks GfK |