- Home
·
- Internet/HTML
·
- Easly find out if the computer is online, and what its IP is with this easy bit of code! (uses Wins
Easly find out if the computer is online, and what its IP is with this easy bit of code! (uses Wins
Easly find out if the computer is online, and what its IP is with this easy bit of code! (uses Winsock)
API Declarations
'Place a winsock control on the form, leave it named "winsock1".
'Add a command button, or timer, or whatever you wich to check the connection status.
Rate Easly find out if the computer is online, and what its IP is with this easy bit of code! (uses Wins
(1(1 Vote))
ipaddress = Winsock1.LocalIP
If ipaddress = "127.0.0.1" Then
MsgBox "You are disconnected!"
Else
MsgBox "You are online, and your IP is " & ipaddress
End If
Easly find out if the computer is online, and what its IP is with this easy bit of code! (uses Wins Comments
No comments yet — be the first to post one!
Post a Comment