View Single Post
Old Jun 13th, 2006, 11:23 PM   #2
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 708
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
The remotehostip will only be set when a connection is made and holding. You have to make a connection, then set the caption to the ip. This does not apply to the local address. For the local address (you), just use:

Label1.Caption = Winsock1.LocalIP
Booooze is offline   Reply With Quote