GetLocalIP() with #NETWORKSERVER

Report any Hollywood bugs here
Post Reply
PEB
Posts: 280
Joined: Sun Feb 21, 2010 1:28 am

GetLocalIP() with #NETWORKSERVER

Post by PEB » Wed Mar 25, 2020 3:22 am

Try this code:

Code: Select all

CreateServer(1)
DebugPrint(GetLocalIP(1, #NETWORKSERVER))

OpenConnection(1, "www.google.com", 80)
DebugPrint(GetLocalIP(1, #NETWORKCONNECTION))
Using #NETWORKSERVER always returns "0.0.0.0" whatever machine runs it; but #NETWORKCONNECTION returns the actual local IP address for the machine.

User avatar
airsoftsoftwair
Posts: 3355
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: GetLocalIP() with #NETWORKSERVER

Post by airsoftsoftwair » Sat Mar 28, 2020 12:28 pm

Ok, this looks like a bug. Will be fixed.

Post Reply