Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

IO::Socket::INET: connect: Permission denied

by Anonymous Monk
on Sep 26, 2012 at 03:07 UTC ( #995683=perlquestion: print w/ replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I'm trying to open UDP listener on local machine, but get this weird error :

Wed, 26/09/2012 04:59:15.728 CYBRO: ****** ERROR ******** Can't make +UDP socket listener: IO::Socket::INET: connect: Permission denied Wed, 26/09/2012 04:59:45.728 CYBRO: ****** ERROR ******** Can't make +UDP receiver on 192.168.0.255 and port 8442, retrying
Using nmap port is not used, so I really don't understand what is wrong. I'm running code as root :
$self->{Abus_udp_receiver}=IO::Socket::INET->new(Proto=>"udp",LocalPor +t=>$port,Reuse => 1, PeerAddr=>$udp_listen_url, PeerPort=>$port ) or +runlog ($self,"****** ERROR ******** Can't make UDP socket listener: +$@");
What is wrong ? Thanks in advance, Robert.

Comment on IO::Socket::INET: connect: Permission denied
Select or Download Code
Re: IO::Socket::INET: connect: Permission denied
by Anonymous Monk on Sep 26, 2012 at 03:10 UTC
    Let me add, that this code worked on previous systems. I recently upgraded to Ubuntu 12.04 and maybe.... Regards, Robert.
      this code worked on previous systems. I recently upgraded to Ubuntu 12.04 and maybe
      seems to me machine configuration issue. try turning off firewall.
        Thanks for hint. I just disabled firewall with no success. Same code goes pass that point on Windows...
        Regards, Robert.
Re: IO::Socket::INET: connect: Permission denied
by Anonymous Monk on Sep 26, 2012 at 06:08 UTC

    permission denied is a weird error?

      permission denied is a weird error?
      Not weird but I suspect Security-enhanced Linux (SELinux) is enabled and affecting socket connection on this machine. Disable SELinux if enabled and give a try.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://995683]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (11)
As of 2015-07-03 07:04 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 (48 votes), past polls