Forum Moderators: mack

Message Too Old, No Replies

Is it possible to determins how many sites are hosted on one IP

Multiple sites on one ip address.

         

maximo789

12:47 am on Jan 24, 2005 (gmt 0)

10+ Year Member



can anyone tell me how I can find out how many websites are running under a given IP address.

Or what those websites are.

lZakl

1:46 pm on Jan 24, 2005 (gmt 0)

10+ Year Member



Eeekk .. I know it’s possible to run more than one website on one IP address, however not a lot of site would want to do this. It would require either different port numbers (I wouldn’t do this) or dealing with post headers, which I believe to be the only way you can have multiple sites on one IP without using different ports.

So... checking this..? As far as I know it would be darn near impossible to have an IP and get every website listed for that IP.. I do know however that you CAN use the PHP function:

echo gethostbyname(“yourdomain.com”);

to return you an IP address for any given website. Either that, or

1) If you are running windows.. Go to Start --> Run --> type “command” ... At the command line simply type “ping example.com” (without quotes) and it will return something like:

Reply from 205.#*$!.64.xxx: bytes=32 time=1424ms TTL=49
Reply from 205.xxx.64.xxx: bytes=32 time=1564ms TTL=49
Reply from 205.xxx.64.xxx: bytes=32 time=669ms TTL=49
Reply from 205.xxx.64.xxx: bytes=32 time=687ms TTL=49

2) If you have a Mac, go to your Macintosh HD --> Applications --> Utilities --> Terminal and launch the terminal. Type “ping example.com” (without quotes) and it will return something like: (In terminal it will keep pinging until you tell it to stop, so to stop it, hit Control+C)

64 bytes from 207.xxx.248.xx: icmp_seq=16 ttl=242 time=39.079 ms
64 bytes from 207.xxx.248.xx: icmp_seq=17 ttl=242 time=38.945 ms
64 bytes from 207.xxx.248.xx: icmp_seq=18 ttl=242 time=38.168 ms
64 bytes from 207.xxx.248.xx: icmp_seq=19 ttl=242 time=38.904 ms

Hope this helps

--Zak

<ADDED> Just so you know.. in the first IP, the #*$! is supposed to be a [b]xxx[\b] but for some reason, the forum edits it.. weird...

mack

6:07 pm on Jan 24, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Eeekk .. I know it’s possible to run more than one website on one IP address, however not a lot of site would want to do this. It would require either different port numbers (I wouldn’t do this) or dealing with post headers, which I believe to be the only way you can have multiple sites on one IP without using different ports.

Apache makes it very easy to run multiple sites on one ip address. It's caled virtual hosting. Basicaly you set up an entry in httpd.conf that tells it where to point different users depending on what url they are requesting.

For example
/home/www.example.com/public_html/
/home/www.example.netpublic_html/

are both users html directories.

The server admin could add the following entried to the httpd.conf


<VirtualHost *>
ServerName www.example.com
DocumentRoot /home/www.example.com/public_html/
</VirtualHost>

<VirtualHost *>
ServerName www.example.net
DocumentRoot /home/www.example.net/public_html/
</VirtualHost>


This is just the basics of virtual hosting. Virtual hostign is very common in the web hosting industry.

Mack.

Nutter

9:09 pm on Jan 24, 2005 (gmt 0)

10+ Year Member



#*$! will tell you how many domains are mapped to the same ip. You can click on the number and it'll show you the domains, but I think you have to pay for that part.

Just as an aside, my last host had about 1,500 domains mapped to the same ip.

- Ryan

Ed: Well it looks like the site I listed falls under the 'No URLs rule', so sticky me if you want it. I would imagine most, if not all, the people here know of this one or something similar.

maximo789

10:46 pm on Jan 24, 2005 (gmt 0)

10+ Year Member



Hello Ryan

your message did not show this correctly:

Can you please tell me if there is a way or tool that I can use to find out what domain names are mapped to a particular ip address, your message below has unreadable charachters.

Thanks

#*$! will tell you how many domains are mapped to the same ip. You can click on the number and it'll show you the domains, but I think you have to pay for that part.
Just as an aside, my last host had about 1,500 domains mapped to the same ip.

- Ryan