--Papo Napolitano <[EMAIL PROTECTED]> [010712 21:37]:
> Hi, this is my first post, so don't blame me (too much) if i'm posting to
> the wrong list.
> I'm working on a very simple client/server program in Perl... A server
> broadcasts udp packets with some info that a couple of clients then
> collect & display.
> Well, could anyone tell me what's the mistake in the following piece of
> code?
> 
> ---------------------------
> use strict;
> use IO::Socket;
> my ($sock, $portno, $serverhost);
> $portno = 11666;
> $serverhost = "255.255.255.255";
> $sock = IO::Socket::INET->new(
>     Proto => 'udp',
>     PeerPort => $portno,
>     PeerAddr => $serverhost) or die "IO::Socket::INET -> $!\n";
> ---------------------------
> 
> Because it works ok under Cygwin but gives me a "permission denied"
> error in Mandrake 7.2
> Any clue?

If you are trying to open a socket < 1024 you must have root privileges.

-- 
Dave Watson

Reply via email to