text1.text = Winsock1.LocalIP
won't give you your real ip on a proxy server, unless the winsock is connenected to something.
??

It will give your IP but you need the winsock OCX added into you project You don't need to be connected to anything But It will return your "fake" ip (your poxy/lan ip)