This method works some times:
Code:
Label1.Caption = Winsock1.LocalIP
If Label1.Caption = "" Then
   WebBrowser1.Navigate ("C:\index.html")
End If
or

Registry way
Just add an IfThen Statment at the end of that code.


Gl,
D!m