Connecting to Vassal Server Through a Web Proxy

Hello guys and gals,
Currently I have a problem connecting to the vassal servers while at work. (NO comments from the peanut gallery, I work overnights with long periods of inactivity… :stuck_out_tongue:) Either Way, the problem I’m having “I believe” is that I currently sit behind a web proxy. The network has been setup to NOT allow any type of port 80 (http) traffic unless it originates from the proxy. Now I know it works fine when I’m at home (not going through the proxy). So I need help in figuring out one of two things.

  1. how to get the Vassal traffic to route to the internet through the proxy (I’ve tried adjusting the proxy settings in Java but that doesn’t seem to help any)

  2. Modify Vassal to use a different port to reach the servers.

Just as an FYI I will attack a log file from what happens when I attempt to reach the servers from inside my network.

  • Dell D620
  • XP Pro SP3
  • Dual Core 2GHZ
  • 2GB
  • 32MB onboard
  • Vassal version. 3.1.12
  • Java6 Update 7

When I attempt to “Join a game” online I get a "Network Communication error, and a log that looks like this:

java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at VASSAL.chat.HttpRequestWrapper.doGet(HttpRequestWrapper.java:90)
at VASSAL.chat.HttpRequestWrapper.doGet(HttpRequestWrapper.java:47)
at VASSAL.chat.DynamicClient.getServerConfig(DynamicClient.java:65)
at VASSAL.chat.DynamicClient.buildDelegate(DynamicClient.java:55)
at VASSAL.chat.DynamicClient$1.doInBackground(DynamicClient.java:85)
at VASSAL.chat.DynamicClient$1.doInBackground(DynamicClient.java:82)
at org.jdesktop.swingworker.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at org.jdesktop.swingworker.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

From the Actual Log file:

17 Dec 2009 04:47:25.008 0 – Starting
17 Dec 2009 04:47:25.024 0 – OS Windows XP
17 Dec 2009 04:47:25.024 0 – Java version 1.6.0_17
17 Dec 2009 04:47:25.024 0 – VASSAL version 3.1.12
17 Dec 2009 04:47:25.149 0 – Manager
17 Dec 2009 04:47:37.883 0 – Loading module file C:\Program Files\VASSAL\V40k_V5-2 www.vassal40k.com.vmod
17 Dec 2009 04:47:37.899 0 – Loading module V40K 5.2 [www.vassal40k.com]
17 Dec 2009 04:47:37.915 0 C:\Program Files\Java\jre6\bin\java -Xms256M -Xmx512M -DVASSAL.id=1 -cp lib\Vengine.jar;Vengine.jar VASSAL.launch.Player
17 Dec 2009 04:47:42.009 1 – V40K 5.2 [www.vassal40k.com] version 5.2
17 Dec 2009 04:47:42.009 1

17 Dec 2009 04:47:42.149 1 BasicLogger.setup() - Game starting = false, endLogAction.enabled()=false
17 Dec 2009 04:47:42.149 1 BasicLogger.setup() - Game ending, outPutfile set to null
17 Dec 2009 04:48:00.040 1 java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at VASSAL.chat.HttpRequestWrapper.doGet(HttpRequestWrapper.java:90)
at VASSAL.chat.HttpRequestWrapper.doGet(HttpRequestWrapper.java:47)
at VASSAL.chat.DynamicClient.getServerConfig(DynamicClient.java:65)
at VASSAL.chat.DynamicClient.buildDelegate(DynamicClient.java:55)
at VASSAL.chat.DynamicClient$1.doInBackground(DynamicClient.java:85)
at VASSAL.chat.DynamicClient$1.doInBackground(DynamicClient.java:82)
at org.jdesktop.swingworker.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at org.jdesktop.swingworker.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

17 Dec 2009 04:48:00.040 1 java.net.ConnectException: Connection refused: connect
17 Dec 2009 04:48:00.040 1

17 Dec 2009 04:48:00.040 1 at java.net.PlainSocketImpl.socketConnect(Native Method)
17 Dec 2009 04:48:00.040 1

17 Dec 2009 04:48:00.040 1 at java.net.PlainSocketImpl.doConnect(Unknown Source)
17 Dec 2009 04:48:00.040 1

17 Dec 2009 04:48:00.040 1 at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
17 Dec 2009 04:48:00.040 1

17 Dec 2009 04:48:00.040 1 at java.net.PlainSocketImpl.connect(Unknown Source)
17 Dec 2009 04:48:00.040 1

17 Dec 2009 04:48:00.040 1 at java.net.SocksSocketImpl.connect(Unknown Source)
17 Dec 2009 04:48:00.040 1

17 Dec 2009 04:48:00.040 1 at java.net.Socket.connect(Unknown Source)
17 Dec 2009 04:48:00.040 1

17 Dec 2009 04:48:00.040 1 at java.net.Socket.connect(Unknown Source)
17 Dec 2009 04:48:00.040 1

17 Dec 2009 04:48:00.040 1 at sun.net.NetworkClient.doConnect(Unknown Source)
17 Dec 2009 04:48:00.040 1

17 Dec 2009 04:48:00.040 1 at sun.net.www.http.HttpClient.openServer(Unknown Source)
17 Dec 2009 04:48:00.040 1

17 Dec 2009 04:48:00.040 1 at sun.net.www.http.HttpClient.openServer(Unknown Source)
17 Dec 2009 04:48:00.040 1

17 Dec 2009 04:48:00.040 1 at sun.net.www.http.HttpClient.(Unknown Source)
17 Dec 2009 04:48:00.040 1

17 Dec 2009 04:48:00.040 1 at sun.net.www.http.HttpClient.New(Unknown Source)
17 Dec 2009 04:48:00.040 1

17 Dec 2009 04:48:00.040 1 at sun.net.www.http.HttpClient.New(Unknown Source)
17 Dec 2009 04:48:00.040 1

17 Dec 2009 04:48:00.040 1 at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
17 Dec 2009 04:48:00.040 1

17 Dec 2009 04:48:00.040 1 at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
17 Dec 2009 04:48:00.040 1

17 Dec 2009 04:48:00.040 1 at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
17 Dec 2009 04:48:00.040 1

17 Dec 2009 04:48:00.040 1 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
17 Dec 2009 04:48:00.040 1

17 Dec 2009 04:48:00.040 1 at VASSAL.chat.HttpRequestWrapper.doGet(HttpRequestWrapper.java:90)
17 Dec 2009 04:48:00.040 1

17 Dec 2009 04:48:00.040 1 at VASSAL.chat.HttpRequestWrapper.doGet(HttpRequestWrapper.java:47)
17 Dec 2009 04:48:00.040 1

17 Dec 2009 04:48:00.040 1 at VASSAL.chat.DynamicClient.getServerConfig(DynamicClient.java:65)
17 Dec 2009 04:48:00.040 1

17 Dec 2009 04:48:00.040 1 at VASSAL.chat.DynamicClient.buildDelegate(DynamicClient.java:55)
17 Dec 2009 04:48:00.040 1

17 Dec 2009 04:48:00.040 1 at VASSAL.chat.DynamicClient$1.doInBackground(DynamicClient.java:85)
17 Dec 2009 04:48:00.040 1

17 Dec 2009 04:48:00.040 1 at VASSAL.chat.DynamicClient$1.doInBackground(DynamicClient.java:82)
17 Dec 2009 04:48:00.040 1

17 Dec 2009 04:48:00.040 1 at org.jdesktop.swingworker.SwingWorker$1.call(Unknown Source)
17 Dec 2009 04:48:00.040 1

17 Dec 2009 04:48:00.040 1 at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
17 Dec 2009 04:48:00.040 1

17 Dec 2009 04:48:00.040 1 at java.util.concurrent.FutureTask.run(Unknown Source)
17 Dec 2009 04:48:00.040 1

17 Dec 2009 04:48:00.040 1 at org.jdesktop.swingworker.SwingWorker.run(Unknown Source)
17 Dec 2009 04:48:00.040 1

17 Dec 2009 04:48:00.040 1 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
17 Dec 2009 04:48:00.040 1

17 Dec 2009 04:48:00.040 1 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
17 Dec 2009 04:48:00.040 1

17 Dec 2009 04:48:00.040 1 at java.lang.Thread.run(Unknown Source)
17 Dec 2009 04:48:00.040 1

17 Dec 2009 04:48:15.650 1 BasicLogger.setup() - Game starting = false, endLogAction.enabled()=false
17 Dec 2009 04:48:15.650 1 BasicLogger.setup() - Game ending, outPutfile set to null
17 Dec 2009 04:48:15.681 1 – Exiting
17 Dec 2009 04:54:02.313 0 – Exiting

Thanks for the info guys.

Thus spake “Winged_Human”:

VASSAL isn’t picking up your system’s proxy information. Try this:

Create a file called VASSAL.l4j.ini in the same directory where VASSAL.exe
is. Put the following line in it

-Djava.net.useSystemProxies=true

and then start VASSAL and try to connect. If that doesn’t work, try
putting these two lines in the VASSAL.l4j.ini:

-Dhttp.proxyHost=nameofyourproxy
-Dhttp.proxyPort=80

where you replace “nameofyourproxy” with the name of your proxy.

Please let us know whether either of these works, and if so, which one.


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Hey mate,
Thanks for the info, unfortunately neither of these worked.

Currently here is the info in my VASSAL.l4j.ini file:

-Djava.net.useSystemProxies=true
-Dhttp.proxyHost=172.31.60.75
-Dhttp.proxyPort=8080

I tried port 80 as well as port 8080 (because 8080 is the port we use to connect to the proxy server.

Is there a way to pass username/password info in this file as well?

Thus spake “Winged_Human”:

Try adding these:

-Dhttp.proxyUser=username
-Dhttp.proxyPassword=password

Does that work?


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Unfortunately that didn’t work either, regardless of which port I used. :frowning:

Worked like a charm.
Thanks!

My VASSAL.l4j.ini file says the following (I’ve placed *** for security purposes. My file has the full address name and port #, without ***)

-Djava.net.useSystemProxies=true
-Dhttp.proxyHost=proxy..intel.***
-Dhttp.proxyPort=9**