The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: Grincheux on July 17, 2008, 08:27:59 PM

Title: IP Infos
Post by: Grincheux on July 17, 2008, 08:27:59 PM
I would like to get some infos about my IP address like with this link : http://www.codeproject.com/KB/ajax/WhosOnlineAspNet.aspx

I would like to get my ISP address too like http://www.adresseip.com/

Which are the functions the functions to call ? It is not possible to get this infos with WinSock !

At home and at work I use a router (OVISLINK at home and NETGEAR at work). Is the returned IP address is the router address ?

Can someone help me ? I am not a pirate !
Title: Re: IP Infos
Post by: Vortex on July 17, 2008, 08:43:17 PM
Here is an example coded with Pelles C :

Get public IP with winsock (http://forum.pellesc.de/index.php?topic=2451.0)
Title: Re: IP Infos
Post by: Grincheux on July 17, 2008, 08:54:04 PM
Thanks Vortex :clap:, I found similar info at http://69.10.233.10/KB/IP/TracertMap.aspx.

If I remember, the first byte of an IP address gives the country ?

If a website can give these info, it must call a function to get the result ? They are not only unix website, so there is one site under windows that catches this info ! How do they do ? :red
Title: Re: IP Infos
Post by: Grincheux on July 17, 2008, 09:00:36 PM
More infos at http://www.db.ripe.net/whois
Title: Re: IP Infos
Post by: Farabi on July 21, 2008, 12:06:30 PM
 :U I imagine if I can modify my laptop software so I will not lost my laptop anymore.
Title: Re: IP Infos
Post by: Grincheux on August 01, 2008, 06:33:47 PM
With all these remarks I made a small program that gives the same infos as IPCONFIG.

It can be downloaded at : http://www.idcat39.com/download/Bin/IP.exe

Into this file you get the asm source file too.
Title: Re: IP Infos
Post by: Farabi on August 06, 2008, 02:05:13 AM
Quote from: Grincheux on August 01, 2008, 06:33:47 PM
With all these remarks I made a small program that gives the same infos as IPCONFIG.

It can be downloaded at : http://www.idcat39.com/download/Bin/IP.exe

Into this file you get the asm source file too.

Cool  :U