Can you give more details, as to what application/port your socket client is
connecting to?
--
feroze
-----------------
This posting is provided as-is. It offers no warranties and assigns no
rights.
See
http://weblogs.asp.net/feroze_daud for System.Net related posts.
----------------
"Dan" <> wrote in message
news:...
> Hi,
>
> Can someone point me in the right direction on a really simple access
> control issue? Here is the situation:
>
> 1. an app on a client computer connected to internet and executes this
kind
> of code:
> acceptor = new Socket(AddressFamily.InterNetwork, SocketType.Stream,
> ProtocolType.Tcp);
> acceptor.Bind(new IPEndPoint(IPAddress.Any, port));
> acceptor.Listen(ListenQueueSize);
> socket = acceptor.Accept();
>
> 2. on a web server executes this kind of code:
> socket.Connect(new IPEndPoint(ip, port));
> sockets[i] = socket;
> nHosts += 1;
> socket.SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.NoDelay,
1);
>
socket.SetSocketOption(SocketOptionLevel.Socket,So cketOptionName.Linger,new
> System.Net.Sockets.LingerOption(true, LingerTime));
>
> This code executes fine, my problem is that the client asks for a user
name
> and password to access the server and I don't want that to happen, I want
> the client (code) to know the server login so this dialog does not appear.
>
> So my question is, how might this be done?
>
> Thanks very much for helping!
>
> Dan
>
>