Sign in to follow this  
Followers 0
ashley

how to get ping addresses

8 posts in this topic

can i get ping addresses for any website

for example...

if you type 208.65.153.62 in your browser and then enter it will take you to youtube...

How can i get these for another site?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

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. :)

it doesnt allways work

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

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

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 :)

and where is the ip shown

Share this post


Link to post
Share on other sites

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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
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
Sign in to follow this  
Followers 0