VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Determine if you are online or not using winsock and only 2 simple lines of code.

by Dude, where's my car? ()
Category: Internet/HTML
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Tue 30th January 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Determine if you are online or not using winsock and only 2 simple lines of code.

API Declarations


'You need a winsock control
'Microsoft Winsock Control
'You also need one label

Rate Determine if you are online or not using winsock and only 2 simple lines of code.



Label1.caption = "You're offline"
If winsock1.localip = "120.0.0.7 then label1.caption = "You're online!"


Download this snippet    Add to My Saved Code

Determine if you are online or not using winsock and only 2 simple lines of code. Comments

No comments have been posted about Determine if you are online or not using winsock and only 2 simple lines of code.. Why not be the first to post a comment about Determine if you are online or not using winsock and only 2 simple lines of code..

Post your comment

Subject:
Message:
0/1000 characters