This content has been marked as final. Show 3 replies
I assume you meant to say "it *doesn't* seem to like..."?
Are you getting an error message? If so, post complete stack trace.
Hunter_wow wrote:Presumably in the URL specification you are actually using the VPN IP address (or the domain name mapped to that IP address). Also, presumably you have configured the web server to bind to the VPN IP address.
Hi. I am using an VPN service. But it seems like my java program:
are still using my original ip address. Any hints on what I can do to make the connection go throw my VPN service?
URL url = new URL("http://..."); BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
The IP routing table needs to be set up to prefer the VPN if it is running. Not something you can control for HttpURLConnection in Java.