Jump to content

how to get ping addresses


Recommended Posts

If you type "ping www.website.com" and press enter in cmd, the next line it will appear will be: "Pinging www.website.com [THE IP HERE] with 32 bytes of data". Inside the brackets [] it's the ip of that website. :)

Edit: You can also use "tracert" instead of ping with the same result.

Edited by Kiti
Link to comment
Share on other sites

it doesnt allways work

I.E 62.128.195.146 is ment to be for www.scuzz.tv but its not

Of course it won't work, that server is not online. You can't ping an offline server. So, you want a kind of database with all websites and their ip, right? Something like iplookup or whois.

Then try http://www.who.is/ . It works with every website :)

Edited by Kiti
Link to comment
Share on other sites

  • Developers

There is no relation between DNS and a site being down.

To translate an Ip address to a Hostname or a HostName to its IP address you can use the available functions.

TCPNameToIP ( name )
#include <iNet.au3>
_TCPIpToName ( $sIp [,$iOption = 0 [, $hDll_Ws2_32 = "Ws2_32.dll" ]] )

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...