Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: 500 Can't connect to localhost:80 (Connection Refused) at ./sample.pl line 19

by Preceptor (Chaplain)
on Aug 22, 2013 at 07:16 UTC ( #1050474=note: print w/ replies, xml ) Need Help??


in reply to 500 Can't connect to localhost:80 (Connection Refused) at ./sample.pl line 19

Connection refused usually means - there's nothing running on that port. A simple way to test this, is use 'telnet':

telnet localhost 80 GET / HTTP/1.0

Type the 'get' bit if the telnet connects, and hit enter twice, and that's a very basic test of 'is there a webserver here'. Chances are though - you'll get 'connection refused' as well - it's not your perl code that's at fault, but the webserver. You may need to use http://<hostname> as 'localhost' is a different interface. Or check your apache config for which port number it's using


Comment on Re: 500 Can't connect to localhost:80 (Connection Refused) at ./sample.pl line 19
Download Code
Re^2: 500 Can't connect to localhost:80 (Connection Refused) at ./sample.pl line 19
by Anonymous Monk on Aug 22, 2013 at 09:37 UTC
    The server is up and running and I can access it using http://<localhost> and http://<hostname> both.. program was working fine with IPv4 Address but when running it for IPv6 it is failing with Connection Refused errors.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1050474]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (14)
As of 2014-09-02 15:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (25 votes), past polls