pinging two different URLs, response comes from same IP address (server), Is that possible?

Discussion in 'Linux Networking' started by vasanta, Jul 10, 2004.

  1. vasanta

    vasanta Guest

    I am pinging two different URL sites (ping www.xyz.com and ping
    www.abc.com), the reply comes from same server, Is that possible?. In
    the ping reply, the IP address is same. How that is possible?.

    How can I know the remote web server is running based on Linux?. Or
    Windows based?.

    Thanks.
     
    vasanta, Jul 10, 2004
    #1
    1. Advertisements

  2. You do NOT ping a URL, you ping a hostname (or IP). It is possible that
    they are name based virtual hosts (apache and other web servers can do
    that). The content is based on the Host header in the HTTP request.
    Depending on your browser, it might show http response headers, or you
    could use "wget -S -O - http://whatever/" to see what the server
    identifies itself as. The 'nmap' program can often identify an OS, but if
    there are no signatures it can identify, it might just pick up the Linux
    signatures from your end, or it may be misguided by a router in the path.
    You have to be cautious about port scanning any box you do not control
    anyway, because they may misread it is a crack attempt.
     
    David Efflandt, Jul 10, 2004
    #2
    1. Advertisements

  3. vasanta

    repo Guest

    In Apache you can use virtual hosts.
     
    repo, Jul 10, 2004
    #3
  4. vasanta

    Bit Twister Guest

    Looking a google.com
    host google.com
    google.com has address 216.239.39.99
    google.com has address 216.239.37.99
    google.com has address 216.239.57.99

    so a ping google.com could return any one of the three.

    I use http://uptime.netcraft.com/
     
    Bit Twister, Jul 10, 2004
    #4
  5. vasanta wrote:

    [snip]
    http://netcraft.com/
     
    Abdullah Ramazanoglu, Jul 10, 2004
    #5
  6. For multiple machines behind the same router, the router could be set up
    to respond to all pings.
    $ telnet www.server.com 80

    Trying www.xxx.yyy.zzz...
    Connected to www.server.com.
    Escape character is '^]'.

    GET / HTTP/1.0


    HTTP/1.1 200 OK
    Server: Microsoft-IIS/4.0
    Content-Location: ...etc....
     
    Allen Kistler, Jul 10, 2004
    #6
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.