Tutorial :java tcp ip socket programming regardless of proxy type



Question:

How to write TCP IP socket programming in java. If the client is behind any type of proxy (may be http or socks or no proxy).

Thanks Bapi


Solution:1

When I faced such kind of problem I had to code myself http layer (over HTTP CONNECT) and used existing (in standard library) socks layer. However the main problem is to get the proxy settings. As far as I was doing it for a Web Start application, I could use default browser settings.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »