In general, network services follow the traditional client/server model. One computer acts as a server to provide a certain service and another computer represents the client side which makes use of this service. In order to communicate over the network a network socket comes into play, mostly only referred
Setting the proxy server and port:
System.setProperty("http.proxyHost", "proxy.example.com"); System.setProperty("http.proxyPort", "80");
For an HTTPS proxy, just change 'http' to 'https' for each property.
Or you can just use the system's proxies:
Disabling the IPv6