[Mono-list] Access Denied in Socket constructor
jcmag
jcmag at yahoo.com
Sun Jan 14 14:54:44 EST 2007
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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070114/d0561c9b/attachment.html
More information about the Mono-list
mailing list