Re: HELP HELP HELP:how SOCKET through proxy in c#!!!!!!!!

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Nicholas Paldino [.NET/C# MVP] (mvp_at_spam.guard.caspershouse.com)
Date: 03/17/04


Date: Wed, 17 Mar 2004 09:00:56 -0500

zengou,

    What exactly is the protocol you are using? Is it custom? If you are
using a proxy, then chances are you will not be able to just open a random
socket to connect to the internet, as the proxy has to be set up to receive
your incoming traffic, and then establish a connection with the outside
world.

    If the proxy is configured correctly, then you should be able to just
create the socket normally, and assuming the machine is configured correctly
(not specific apps, but the network adapter on the machine itself), then it
should work.

    However, the proxy has to be open to allow any communication with
anyone, and not for just specific application/protocol types.

    Hope this helps.

-- 
               - Nicholas Paldino [.NET/C# MVP]
               - mvp@spam.guard.caspershouse.com
"zengou" <anonymous@discussions.microsoft.com> wrote in message
news:0CB9C41A-BECC-4C72-AD9B-BCC9FBD3E646@microsoft.com...
> the client application want to commnunication with  the server
application(write and read) by SOCKET protocol,but the network is a private
network,it  connects to internet through a proxy server,but the .net socket
class can't set a proxy,can you have any idea to work out the question!
> i know Indy  and down it ,but i don't know how to use it,can you give me a
code example!
> thank you very much!!!!!!
>
> my email:zengou@163.net


Relevant Pages

  • Re: proxy does not work with secure sites
    ... > coonected to port 80 i get this excpetion some times.. ... It must open a socket to the target server ... the proxy should simply forward ... >>> not serving the request.. ...
    (microsoft.public.win32.programmer.networks)
  • Making a socket connection via a proxy server
    ... In a nutshell - the question I'm asking is, how do I make a socket ... I am hacking "Tiny HTTP Proxy" by SUZUKI Hisao to make an http proxy ... It looks like the CONNECT and GET requests are just implemented using ...
    (comp.lang.python)
  • Sockets help
    ... a very simple socket function, client and server. ... through a proxy in between. ...
    (comp.lang.tcl)
  • Re: Splitting a full-duplex socket
    ... to circumvent this limitation you create a HTTP proxy which takes this ... create a normal socket on the proxy etc. ... But you kept saying you had no Full-duplex connection, ...
    (comp.lang.java.programmer)
  • Re: proxy does not work with secure sites
    ... Thks for ur reply... ... But rediff and yahoo are not secure sites?? ... It must open a socket to the target server ... the proxy should simply forward ...
    (microsoft.public.win32.programmer.networks)