problem withTCPClient
-
hi, I work on a computer that is part of a network and uses proxy to connect to net. I cant connect to servers outside my proxy with simple ConnectTo code. I need to know how to make my requests go through proxy. eg, serverTcpConnection = new TcpClient(popServer, port); does not work. Thanx.
-
hi, I work on a computer that is part of a network and uses proxy to connect to net. I cant connect to servers outside my proxy with simple ConnectTo code. I need to know how to make my requests go through proxy. eg, serverTcpConnection = new TcpClient(popServer, port); does not work. Thanx.
You cannot bypass the proxy. Either the administrator of the proxy machine has to open up the port for you, or, you have to tunnel it through some port which the proxy keeps open. Typically, proxies keep port 80 for HTTP open. You could write a webservice that runs on a machine that has access to the port you want and then simply have your client call the webservice instead.
Regards Senthil [MVP - Visual C#] _____________________________ My Blog | My Articles | My Flickr | WinMacro