Programming Java sockets behind a proxy server

I wrote a TCP socket program that works fine. But my socket program did not work if my server or client is behind a proxy. So how to overcome this issue.

Thanks Bapita

+3
source share
3 answers

Well, there are two questions:

  • For the proxy; and
  • Behind the firewall.

The firewall tends to be simpler: you just use port 80 (HTTP) or 443 (HTTPS). A proxy server is more complicated because direct network communication is usually disconnected from regular PCs.

, HTTP / SSL, , . push- ( , Comet), .

, , , .

+2

, . Java .

+2

- , . Proxy , , -, - , -.

, HTTP , -. , , , , .

, , , , , () ..

? ( , - ?) - , . -, ?

You say you are using port 5018. As an experiment, can you try using port 80? Just because you are using port 80 does not mean that you should use HTTP. It is worth a try if this helps.

0
source

Source: https://habr.com/ru/post/1705621/


All Articles