I'm having an issue when copying my application to the server. The program runs fine on my testing machine (Mac OS X), but when I deploy it on my server (Windows Server 2008), I get the following error:
java.net.ConnectException: Connection refused
I'm sure I've open the ports correctly for outbound connections. Just port 80 right?
Here's a code snippet if it helps
try {
doc = Jsoup.connect("http://google.com").get();
} catch (IOException e) {
e.printStackTrace();
return;
}
Java isn't my main language, so let me know if there's anything more you need.