by Sam Witney (7 Submissions)
Category: Internet/HTML
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Thu 20th December 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Easly and very quickly get your IP address copyed to the clipboard for instant pasting into chat, IM's or anything else. Great for online
API Declarations
'just place code in any sub to find and copy your IP.
'TIP: To get your IP after running this, simply use Control V, or Edit paste! - so simple!
'I have made a simple program using this, by running the exe, it uses the code in formload, then ends. the IP can then be pasted in to the chat cliant or anything else for that matter.
On Error GoTo iperror
myip$ = Winsock1.LocalIP
If myip$ = "" Then myip$ = "<No IP Found>"
If myip$ = "127.0.0.1" Then myip$ = "<You are off line>"
Clipboard.Clear
Clipboard.SetText (myip$)
'Your IP has been copyed to the clipboard, use Control V or edit paste to get it. You could add a message box here too, to show the IP.
Exit Sub
iperror:
MsgBox "It was not possiable to get your IP address.", vbCritical, "Error"
No comments have been posted about Easly and very quickly get your IP address copyed to the clipboard for instant pasting into chat, I. Why not be the first to post a comment about Easly and very quickly get your IP address copyed to the clipboard for instant pasting into chat, I.