#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2007
    Posts
    5
    Rep Power
    0

    Cant ping localhost:80 and localhost:8080


    Hi! My Problem is this,

    Background:
    Currently im running IIS and Apache on port:80 and port:8080. Both are working fine. I can access both pages by http://localhost:80 and http://localhost:8080 in FireFox.(Still i cant access them in IE, it ask for username and password )

    Problem
    I just wanna to ping my 2 servers. So what i do is goto CMD and type "ping localhost:80" and it give me a error msg.

    "Ping request could not find host localhost:80. Please check the name and try again."

    And i have Zonealarm and Symantic Antivirus guard..

    same thing happen when i try to ping localhost:8080,
    And i try using 127.0.0.1 too... Any suggestions...
    Thanks in advance
  2. #2
  3. Java Junkie
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Feb 2004
    Location
    Mobile, Alabama
    Posts
    4,023
    Rep Power
    1285
    Don't include the port number when you ping.
  4. #3
  5. mod_dev_shed
    Devshed Supreme Being (6500+ posts)

    Join Date
    Sep 2002
    Location
    Atlanta, GA
    Posts
    14,817
    Rep Power
    1100
    As mentioned, you ping hosts not ports. You can telnet into hosts and ports to see the response.
    # Jeremy

    Explain your problem instead of asking how to do what you decided was the solution.
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2007
    Posts
    5
    Rep Power
    0
    Originally Posted by jharnois
    As mentioned, you ping hosts not ports. You can telnet into hosts and ports to see the response.
    i tried "telnet localhost:80"
    it gives me this error msg "Connecting To localhost:80...Could not open connection to the host, on port 23: Connect failed"

    and same error msg for port:8080
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2007
    Posts
    5
    Rep Power
    0
    Originally Posted by bullet
    Don't include the port number when you ping.
    then how im going to ping 2 servers which is running on different ports?
  10. #6
  11. Recovering Intellectual
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Jun 2006
    Location
    Orange County, CA
    Posts
    1,306
    Rep Power
    785
    Originally Posted by Shabith
    then how im going to ping 2 servers which is running on different ports?
    When jharnois said you ping hosts .. not ports .. he was also meaning that a 'host' refers to a single machine. If you are running two "servers" off of a single computer thats fine, but host != server in this case.

    why do you need to ping your two webservers individually?

    Comments on this post

    • jharnois agrees
    Bugs that go away by themselves come back by themselves
    Beware - your loyalty will not be rewarded
  12. #7
  13. Recovering Intellectual
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Jun 2006
    Location
    Orange County, CA
    Posts
    1,306
    Rep Power
    785
    Originally Posted by Shabith
    i tried "telnet localhost:80"
    it gives me this error msg "Connecting To localhost:80...Could not open connection to the host, on port 23: Connect failed"

    and same error msg for port:8080
    telnet is done this way:

    telnet <hostname> <port>
    in your case:
    telnet localhost 80
    Bugs that go away by themselves come back by themselves
    Beware - your loyalty will not be rewarded
  14. #8
  15. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2007
    Posts
    5
    Rep Power
    0
    Originally Posted by Matt1776
    why do you need to ping your two webservers individually?
    Actually it is for my school assignment. They are asking to ping web server to check that it is live.
  16. #9
  17. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2007
    Posts
    5
    Rep Power
    0
    Originally Posted by Matt1776
    telnet is done this way:



    in your case:
    Now i got it... but when i do
    Code:
    telnet localhost 80
    It just end with a blank page. Are there anyway to get a confirm msg? saying that your server is live?

    anyway thanks for quick reply.

IMN logo majestic logo threadwatch logo seochat tools logo