Jump to content
Sign in to follow this  
Mythbusters

Getting IP using Winsocket

Recommended Posts

you can also get your IP using winsocket.

 

Right-click @ all the buttons ->Components -> Scroll down to "Microsoft Winsock Control 6.0 (SP6)" -> Click ->Ok

you'll now get 2 computers left to the OLE button, click the computers/winsock control and place it in the form

Next make a text box/ label, your choice. I'll be using a textbox.

Now double click at the form.

Write:

Private Sub Form_Load()
Text1.Text = Winsock.LocalIP
End Sub

Share this post


Link to post
Share on other sites

Acctually i posted the post @ this topic

So i cant change the title/text, since a mod. moved this post to a sparate topic :P

 

But yes, its VB6 ;D

 

Mindovermaster:

All you need to do is make a WinSock Control, and a textbox.

Double click anywhere in the form and paste the code.

Then press F5(or the "play" button)

 

Then the textbox will show your IP...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...