APH Networks | community: Getting IP using Winsocket - APH Networks | community

Jump to content

Review Instructions

This section of the forums is dedicated to members for reviewing software, hardware or technology related things. Please do not copy and paste reviews from other sites. Also, use good grammar and photos/screenshots if possible and make it very detailed, you never know, your review might be added to APH Reviews! You will also be credited! If you have any questions or concerns, please contact the site administrator.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Getting IP using Winsocket

#1 User is offline   Mythbusters 

  • Newbie
  • Group: Members
  • Posts: 3
  • Joined: 14-June 08

Posted 14 June 2008 - 09:50 AM

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

0

#2 User is offline   Mindovermaster 

  • APH Platinum
  • Group: +Subscriber
  • Posts: 2,291
  • Joined: 29-May 07
  • Gender:Not Telling

Posted 14 June 2008 - 08:10 PM

I don't get this...
0

#3 User is offline   chconline 

  • Editor-in-Chief
  • Group: Executive Staff Team
  • Posts: 26,199
  • Joined: 22-October 04
  • Gender:Male
  • Location:Calgary, Alberta

Posted 16 June 2008 - 08:59 PM

Looks like VB6 code, but I don't know anything about programming, so I won't pretend I know heh. :P
Posted Image

#4 User is offline   Mythbusters 

  • Newbie
  • Group: Members
  • Posts: 3
  • Joined: 14-June 08

Posted 18 June 2008 - 05:11 AM

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...
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic