Click to See Complete Forum and Search --> : Problem with the winsock control and networks
Bad5887
Feb 27th, 2000, 07:18 AM
Im making a chat program but i cant get the client to connect to the server if it is on a Network with a proxy server, can anyone please help me?
Bad5887
Feb 28th, 2000, 05:35 AM
Can anyone please help?
please do not crosspost =)
Bad5887
Mar 3rd, 2000, 07:09 AM
Well the other forum doesnt seem to be working :)
privoli
Mar 3rd, 2000, 09:29 AM
Bad,
In regards to a network and a proxy you can't just bypass it. Sounds like you are in a firewall'ed LAN and only have external access via a proxy. Heres the solution and problem you are looking at...
a). HTTP Proxy
You will NOT be able to use your chat program or any other winsock program via the HTTP program due to the nature of the HTTP Proxy.
b). SOCKS Proxy
This is what you need and this WILL work. You will need to bounce through the SOCKS (usually on port 1080) and then bounce via the proxy to the chat server, not easy work, but can be done, you'll need some info from your network admin about the type of SOCKS you are using, if it needs authentication and if you are allowed to bounce through it. I would NOT recommend just conencting through as it may raise a few alarms for your admin.
If you can find out the information above, come and post it back and we can try and work on a solution for your problem.
Cheers
ScaryTortoise
Mar 3rd, 2000, 03:58 PM
Just thought I'd get your attention. Well, I also am experiencing this problem. First thing you should do is get my SevivasDetect from activex dot com. This is an activex control that i developed which detects an internet connection and tells you whether its a dial up connection, Proxied, or LAN.. If you detect a proxy, then you should make that client start the connection to the other client, because machines behind a proxy can connect to other machines cause those connections are trusted. The only time you will experience a problem is when to computers are behind a proxy and not on the same network. So there are 3 scenarios when you can establish a connection through a proxy and only one scenario when you have to program through the proxy. I dont know how to program through the proxy and i have posted my own question about this if you look above. But I have been able to avoid this problem in most situations. Only time i have a problem is when 2 users are behind different proxies.
ComputerA |PROXY|-----> ComputerB Connect! *1 proxy
ComputerA -----> ComputerB Connect! *No proxy
(ComputerA -----> ComputerB) |PROXY| Connect! *same proxy
ComputerA |PROXY|-----> |PROXY|ComputerB NO CONNECTION!
I know its not the answer you've been looking for, but I also have been looking for the answer with no luck. I thought i should post something since u and i are stuck at the exact same place.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.