Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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
Replies are listed 'Best First'.
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 about the Monastery: (9)
As of 2015-07-28 15:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (257 votes), past polls