I have had this problem also.
Right, I have had this problem, and it was not the easiest one to solve. Firstly I trust the command that you are using to retrieve the IP address is something like:
text1.text=winsock1.localIP
right, now this will retrive your Nic IP, (but im sure that you will know that already). Right, now in order to solve the problem you will need to manipulate the registry, as the winsock control will not do it, as the NiC takes preference.
Right, before you do anything, you need to know how to retrieve data from the registry, there is info about this on vb-world (though I cant remember where, sorry!).
Now connect to the internet, I understand your using Windows NT 5.0 (2000) thats good, right you need to find your IP before you start, the best way is connect to an Irc server which will tell you your address, eg 62.255.212.111
Now you have founf this, goto Start -> run and type in regedit
Once it opens search the registry for that IP, and it should locate the data in HKEY_Local_Machine -> and in the Winsocks5 sub directory (I think) though im not at home right now so I cant be fully sure :-).
Basically, although the exact locations are vague that is how to do it. I have done the same thing on Windows NT 4.0 and im betting that the two are not dis-similar.
If you would like a sample programme of how to do this, I would be happy to send you the one that I have created, if you send me an email at:
<a href="mailto:[email protected]?subject=the two ip's">[email protected]</a>
Hope this was reasonably helpful.
=A