Sinisterly
Site IP Finder - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Python (https://sinister.li/Forum-Python)
+--- Thread: Site IP Finder (/Thread-Site-IP-Finder)



Site IP Finder - ben - 10-01-2017

import socket
import os

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#

def restart_program():
python = sys.executable
os.execl(python, python, * sys.argv)
curdir = os.getcwd()

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#

host = raw_input( "Site you want to find Ip:" )
ip = socket.gethostbyname( host )
print ("The ip is :")
print ("[" + ip + "]")
if __name__ == "__main__":
answer = raw_input("Do you want to search for another site's IP?")
if answer.strip() in "y Y yes Yes YES".split():
restart_program()
else:
os.system(curdir+"\Deq\main.py")


RE: Site IP Finder - chuj21 - 03-04-2018

You know if this is still working? Thanks for the share.


RE: Site IP Finder - Bish0pQ - 03-05-2018

(03-04-2018, 12:04 AM)chuj21 Wrote: You know if this is still working? Thanks for the share.

It works, but if you want to find the IP address of a website:
1) Open up command prompt (assuming you're on windows) --> cmd.exe
2) Type in "ping www.example.com" and you'll get the IP address of the website.
--> It is possible that you'll get a cloudflare IP instead of the site IP.


RE: Site IP Finder - mothered - 03-05-2018

There are countless tools and online resources to obtain the IP address of a given site.

The easiest Is as per @Bish0pQ's post above.


RE: Site IP Finder - chunky - 03-06-2018

(03-05-2018, 09:41 AM)Bish0pQ Wrote: --> It is possible that you'll get a cloudflare IP instead of the site IP.

Just keep in mind making sure the obtained IP address isn't a cloudflare one doesn't mean it's the webservers real IP.
There are multiple ways that make it harder to find out a servers real IP but Cloudflare is used quite often so it's probably the most likely method you'll see.


RE: Site IP Finder - Bish0pQ - 03-06-2018

@chunky Of course not. Cloudflare isn't the only one out there, there are more out there and even if they don't use something like that it still doesn't mean it's the real IP.

You can usually request WhoIS data though, that might help in some cases.


RE: Site IP Finder - MrSecurity - 03-07-2018

00000000000000000000000000000000=
-