[Mono-list] Access Denied in Socket constructor
Nuno Marques
nmmstuff at sapo.pt
Sun Jan 14 15:31:14 EST 2007
What port are you using? If it is below 1024, IIRC, you need to be root to
use it.
nuno
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,
> Protocol.Tcp);
>
> 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)
> [0x00000]
>
> Is there another way than using sudo to run my program?
>
> Thanks
>
>
>
>
> ____________________________________________________________________________________
> TV dinner still cooling?
> Check out "Tonight's Picks" on Yahoo! TV.
> http://tv.yahoo.com/
More information about the Mono-list
mailing list