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 and ping, 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?.

    vasanta, Jul 10, 2004
    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
    1. Advertisements

  3. vasanta

    repo Guest

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

    Bit Twister Guest

    Looking a
    host has address has address has address

    so a ping could return any one of the three.

    I use
    Bit Twister, Jul 10, 2004
  5. vasanta wrote:

    Abdullah Ramazanoglu, Jul 10, 2004
  6. For multiple machines behind the same router, the router could be set up
    to respond to all pings.
    $ telnet 80

    Connected to
    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
    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.