IP Finder

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
13 posts Page 1 of 2
User avatar
ManMega1
VIP - Site Partner
VIP - Site Partner
Posts: 326
Joined: Thu Dec 31, 2009 6:09 pm

IP Finder
ManMega1
Welcome, today im going to show you how to make an IP Finder, this will find your computer's local IP, and no, this is not a program to hack other people using IP's, anyway add :

1 button
1 textbox1
and 1 Winsock Control

get the WinSock Control here http://www.dll-files.com/dllindex/dll-f ... l?mswinsck

unzip it then put the .dll in C:\WINDOWS\System32\

then go on visual basic 2008, go on the tools tab at the top, go on choose tool box items, then go on COM Components, then search for Microsoft Winsock Control, version 6.0, then make sure it's ticked once done, place the items however you want, put the button text as "Find My IP" then double click it, and enter this code
Code: Select all
Textbox1.text = AxWinsock1.LocalIP
and your done, debug it then your done.

EDIT : i have seen the link has not been working, but i have fixed it, thanks to AleRi8 with his post
lol you posted a wrong url link to the file it should be


Code: Select all
http://www.dll-files.com/dllindex/dll-f ... l?mswinsck

i found out how to do this via youtube ages ago very good if you want to know ur ip
Last edited by ManMega1 on Tue Apr 06, 2010 12:30 pm, edited 3 times in total.
Image
Image
Image
Image
Image
User avatar
EwoudVL
New Member
New Member
Posts: 11
Joined: Fri Jan 29, 2010 8:07 am

Re: IP Finder
EwoudVL
It works thou the link to the .dll is expired, might be easyer for people to add the .dll in the zip file
Nice n easy code ;) cooll;
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4392
Joined: Tue Aug 04, 2009 1:47 am

Re: IP Finder
CodenStuff
Hello ManMega1,

The link has also expired for me aswell. I see alot of people looking for ways to find the IP address so I know this will come in very handy. cooll;
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
AleRi8
Top Poster
Top Poster
Posts: 153
Joined: Sun Sep 20, 2009 2:30 pm

Re: IP Finder
AleRi8
lol you posted a wrong url link to the file it should be
Code: Select all
http://www.dll-files.com/dllindex/dll-files.shtml?mswinsck
i found out how to do this via youtube ages ago very good if you want to know ur ip
check out my software
win7 itweaker basic £4.50
viewtopic.php?f=70&t=793
User avatar
Insignia
VIP-Member
VIP-Member
Posts: 238
Joined: Thu Feb 11, 2010 5:15 pm

Re: IP Finder
Insignia
Sad thing is this only gets your internal IP address to get the external give this a try;
Code: Select all
Dim req As HttpWebRequest = WebRequest.Create("http://whatismyip.com/automation/n09230945.asp")
        Dim res As HttpWebResponse = req.GetResponse()
        Dim Stream As Stream = res.GetResponseStream()
        Dim sr As StreamReader = New StreamReader(Stream)
        messagebox.show(sr.ReadToEnd())
User avatar
AleRi8
Top Poster
Top Poster
Posts: 153
Joined: Sun Sep 20, 2009 2:30 pm

Re: IP Finder
AleRi8
ChocolateUniverse wrote:
Sad thing is this only gets your internal IP address to get the external give this a try;
Code: Select all
Dim req As HttpWebRequest = WebRequest.Create("http://whatismyip.com/automation/n09230945.asp")
        Dim res As HttpWebResponse = req.GetResponse()
        Dim Stream As Stream = res.GetResponseStream()
        Dim sr As StreamReader = New StreamReader(Stream)
        messagebox.show(sr.ReadToEnd())
wow this is very good thx

dont forget to put at the top
Code: Select all
Imports System.Net
Imports System.IO
check out my software
win7 itweaker basic £4.50
viewtopic.php?f=70&t=793
User avatar
arno
Just Registered
Just Registered
Posts: 5
Joined: Wed Apr 14, 2010 7:34 pm

Re: IP Finder
arno
old but stil fun cooll;
User avatar
Usman55
VIP - Site Partner
VIP - Site Partner
Posts: 2821
Joined: Thu Dec 24, 2009 7:52 pm

Re: IP Finder
Usman55
Hello ManMega1,

I know a way to make it shorter. The steps are:

1. Create a new project.
2. Make a new form.
3. Add a new label.

After that, add a Winsock control and put this code to the Form_Load event: Label1.Text = AxWinsock1.LocalIP
Image
User avatar
arnas120
Just Registered
Just Registered
Posts: 2
Joined: Wed Mar 31, 2010 8:28 am

Re: IP Finder
arnas120
cool i search how make this program thx dude
User avatar
nioz
Just Registered
Just Registered
Posts: 1
Joined: Tue May 24, 2011 1:25 pm

Re: IP Finder
nioz
AleRi8 wrote:
ChocolateUniverse wrote:
Sad thing is this only gets your internal IP address to get the external give this a try;
Code: Select all
Dim req As HttpWebRequest = WebRequest.Create("http://whatismyip.com/automation/n09230945.asp")
        Dim res As HttpWebResponse = req.GetResponse()
        Dim Stream As Stream = res.GetResponseStream()
        Dim sr As StreamReader = New StreamReader(Stream)
        messagebox.show(sr.ReadToEnd())
wow this is very good thx

dont forget to put at the top
Code: Select all
Imports System.Net
Imports System.IO
--------------------------------------------------------------------------------------------------------------
replace http://whatismyip.com/automation/n09230945.asp
server response :
(Please update your script.
Please DO NOT hit this page more than once every 300 seconds to get your IP address.
Please set your code to scrape your IP from http://automation.whatismyip.com/n09230945.asp)
13 posts Page 1 of 2
Return to “Tutorials”