简体   繁体   中英

java tcp ip socket programming regardless of proxy type

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM