in reply to Re^2: perl only listen in 127.0.0.1
in thread perl only listen in 127.0.0.1

Your specification:
my $listen_socket = IO::Socket::INET->new(LocalPort => $port, LocalAddr => 'localhost', # <<<<<<<<< H E R E <<<<<<<< Listen => 1000, Proto => 'tcp',
Tells the server to bind to the localhost.

Simply remove or comment out the line, and it will bind to all interfaces.

     Potentia vobiscum ! (Si hoc legere scis nimium eruditionis habes)

Replies are listed 'Best First'.
Re^4: perl only listen in 127.0.0.1
by vzunigam (Initiate) on May 23, 2009 at 22:12 UTC
    Thank you so much, now my script run very well :)