Can't bind to port
I can't get my Dancer app, running on OS X 10.7/Perl 5.14.2, to bind to port 3000 for some reason: $ ./app.pl [92599] debug @0.000008> Dancer::Loggersession_dir : sessions in /sw/lib/perl5/site_perl/5.14.2/Dancer/Session/Storable.pm l. 34 [92599] core @0.008641> loading Dancer::Handler::Standalone handler in /sw/lib/perl5/site_perl/5.14.2/Dancer/Handler.pm l. 45 [92599] core @0.008782> loading handler 'Dancer::Handler::Standalone' in /sw/lib/perl5/site_perl/5.14.2/Dancer.pm l. 464
Dancer 1.3095 server 92599 listening on http://0.0.0.0:3000 bind to 0.0.0.0:3000: Address already in use at /sw/lib/perl5/site_perl/5.14.2/Dancer.pm line 465
When I point my browser to http://localhost:3000 all I get is a non-html page containing the number 2. gvim
Something else is using the port 3000 already. Enter this to find the process: $ sudo lsof -i TCP:3000 Cheers - T On Sun, Jul 8, 2012 at 3:12 PM, gvim <gvimrc@gmail.com> wrote:
I can't get my Dancer app, running on OS X 10.7/Perl 5.14.2, to bind to port 3000 for some reason:
$ ./app.pl [92599] debug @0.000008> Dancer::Loggersession_dir : sessions in /sw/lib/perl5/site_perl/5.14.2/Dancer/Session/Storable.pm l. 34 [92599] core @0.008641> loading Dancer::Handler::Standalone handler in /sw/lib/perl5/site_perl/5.14.2/Dancer/Handler.pm l. 45 [92599] core @0.008782> loading handler 'Dancer::Handler::Standalone' in /sw/lib/perl5/site_perl/5.14.2/Dancer.pm l. 464
Dancer 1.3095 server 92599 listening on http://0.0.0.0:3000
bind to 0.0.0.0:3000: Address already in use at /sw/lib/perl5/site_perl/5.14.2/Dancer.pm line 465
When I point my browser to http://localhost:3000 all I get is a non-html page containing the number 2.
gvim _______________________________________________ Dancer-users mailing list Dancer-users@perldancer.org http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
On Sun, Jul 08, 2012 at 10:12:24PM +0100, gvim wrote:
Dancer 1.3095 server 92599 listening on http://0.0.0.0:3000 bind to 0.0.0.0:3000: Address already in use at /sw/lib/perl5/site_perl/5.14.2/Dancer.pm line 465
When I point my browser to http://localhost:3000 all I get is a non-html page containing the number 2.
So there's something else listening on that port. $ sudo lsof -i :3000 should tell you what it is. -- David Cantrell | Reality Engineer, Ministry of Information There are many different types of sausages. The best are from the north of England. The wurst are from Germany. -- seen in alt.2eggs...
"TCP" got dropped from my message somehow. The correct command is: $ sudo lsof -i TCP:3000 --T On Mon, Jul 9, 2012 at 8:31 AM, David Cantrell <david@cantrell.org.uk> wrote:
On Sun, Jul 08, 2012 at 10:12:24PM +0100, gvim wrote:
Dancer 1.3095 server 92599 listening on http://0.0.0.0:3000 bind to 0.0.0.0:3000: Address already in use at /sw/lib/perl5/site_perl/5.14.2/Dancer.pm line 465
When I point my browser to http://localhost:3000 all I get is a non-html page containing the number 2.
So there's something else listening on that port.
$ sudo lsof -i :3000
should tell you what it is.
-- David Cantrell | Reality Engineer, Ministry of Information
There are many different types of sausages. The best are from the north of England. The wurst are from Germany. -- seen in alt.2eggs... _______________________________________________ Dancer-users mailing list Dancer-users@perldancer.org http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
participants (3)
-
David Cantrell -
gvim -
Tobias