Winsock1.LocalIP Simple question
Posted on 2005-04-14
Okay I am using winsock control to retrieve an ip address. However there is a slight problem.
If a user is logged onto the internet and I call_ Winsock1.LocalIP it will return me the IP address, however If a user is not logged it returns 127.0.0.1.
I tried adding Winsock1.Localip to a timer but when a user signs on the winsock.localip does not refresh to the new ip instead it stays at 127.0.0.1, how can I refresh the winsock control to get the IP??
I am looking for a simple way other than to detect if a user is online or not and then call winsock1.localip..