[Mono-list] Access Denied in Socket constructor
jcmag at yahoo.com
Mon Jan 15 08:32:35 EST 2007
It was 1000 (It was hard-coded in a library). Changed it and now it works.
Thanks for your quick answer!
----- Original Message ----
From: Nuno Marques <nmmstuff at sapo.pt>
To: jcmag <jcmag at yahoo.com>; mono-list at lists.ximian.com
Sent: Sunday, January 14, 2007 9:31:14 PM
Subject: Re: [Mono-list] Access Denied in Socket constructor
What port are you using? If it is below 1024, IIRC, you need to be root to
On Sun, 14 Jan 2007 19:54:44 -0000, jcmag <jcmag at yahoo.com> wrote:
> In my program I created a Socket:
> Socket s = new Socket(endPoint.Address.AddressFamily, SocketType.Stream,
> If I run my program like this:
> sudo mono myProgram.exe
> (I am on Ubuntu 6.10)
> It works.
> If I run my program without sudo, I have the following exception:
> System.Net.Sockets.SocketException: Access denied
> at System.Net.Sockets.Socket.Bind (System.Net.EndPoint local_end)
> Is there another way than using sudo to run my program?
> TV dinner still cooling?
> Check out "Tonight's Picks" on Yahoo! TV.
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-list