IO::Socket resulting in "Bad protocol 'tcp'" on Win2K

I

Ikke

I have a small perl script that seems to work on some Win2K machines
and to crash on others.

The error message is always:
Bad protocol 'tcp' when it fails to run

The code is:
my $socket = IO::Socket::INET->new ($Socket_type[0] =>
$Socket_type[1],
LocalAddr => '0.0.0.0',
LocalPort => $port,
Proto => 'tcp',
Listen => 10,
Reuse => 1
);
die "Could not create a server on port: $@\n" unless $socket;


I am using ActiveState's Perl 5.8 All computers are 100% identical
in terms of Perl installation
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,157
Latest member
MercedesE4
Top