Code: Select all
CreateServer(1)
DebugPrint(GetLocalIP(1, #NETWORKSERVER))
OpenConnection(1, "www.google.com", 80)
DebugPrint(GetLocalIP(1, #NETWORKCONNECTION))
Code: Select all
CreateServer(1)
DebugPrint(GetLocalIP(1, #NETWORKSERVER))
OpenConnection(1, "www.google.com", 80)
DebugPrint(GetLocalIP(1, #NETWORKCONNECTION))
It's possible but can be a little inconvenient. See here for an approach: viewtopic.php?f=4&t=2421&p=13090#p13085PEB wrote: ↑Mon Sep 07, 2020 9:17 pm Interesting. So is there a way to get Hollywood to return the LocalIP address (assuming it's not known) without first making contact with the outside world (like using OpenConnection(1, "www.google.com", 80) does)?
Code: Select all
- New: Added GetLocalInterfaces() to the network library; this will return a list of all interfaces that
are currently available; it will return a table that contains "Name", "Address", and "Protocol" for each
item; this allows you to conveniently determine a system's local IP address