STDOUT "Local IP(s) (for LAN connection): \n" _
+ REPLACE$(NETGETIP$(), "|", "\n")+"\n"
LOCAL myip$, proxy$, port%
// proxy$ = "192.168.168.50"
// port = 3128
IF port=0 OR LEN(proxy$)=0
// direct connection
myip$=NETWEBGET$("www.whatismyip.com", "/automation/n09230945.asp", 80, 512)
ELSE
// through proxy server
myip$=NETWEBGET$(proxy$, "http://www.whatismyip.com/automation/n09230945.asp", port, 512)
ENDIF
STDOUT "Internet IP:\n"+myip$+"\n"