anishkumarv has asked for the wisdom of the Perl Monks concerning the following question:

we have a issue in server, we are running a perl script to connect our clients, but we are not able to connect, every time we are getting the "Invalid argument error" Even i checked all the necessary perl modules are i installed in this server,

#create the listen socket my $listen_socket = IO::Socket::INET->new( LocalAddr => $MOBILLLLE_Proxy, LocalPort => $MOBILLLLE_ProxyPort, Listen => 1, Proto => 'tcp', Reuse => 1) or die "Can't create listening socket at $MOBILLLLE_ProxyPort: $!\n";
the above mention code i used in this script, every time when i try to connect. iam getting this output  Can't create listening socket at 5005: Invalid argument Why iam getting this error.. Need your guidance to fix this issue.

Replies are listed 'Best First'.
Re: Perl "Invalid argument error"
by ikegami (Patriarch) on Nov 07, 2011 at 03:51 UTC

    Does $MOBILLLLE_Proxy contain the IP address (with no trailing newline or other extra whitespace) of a local interface?

    If you think it does, try finding out which of the system calls in IO::Socket::INET::configure is failing.

      Hi, actually iam newbie to perl, so can you explain little clearly, what are the things i need to check.

        what are the things i need to check.

        $MOBILLLLE_Proxy

        Hi, actually iam newbie to perl,

        Nothing I said is specific to Perl.