Problems connecting from behind a proxy

The worst monsters in the Hearthlands warp the fabric of space and time..

Problems connecting from behind a proxy

Postby akavel » Sat May 30, 2009 7:36 pm

Hi!
My PC is connected to the Internet via a SOCKS5 proxy. Now, when I start your JNLP, I get shown the "username/password" screen of H&H, with a "Could not locate server" message in red. My overall Java settings are configured with the proxy taken into account (some "hello world" Java apps do successfully connect to the Internet). Would you have any suggestions how can I try to make the game work OK? Oh, and I've tried downloading the JARs specified in the JNLP and the related JNLPs and then start it all from command line, but I get a small messagebox stating only "An error has occurred! Do you wish to report it?", which doesn't provide enough information to go further.
akavel
 
Posts: 1
Joined: Sat May 30, 2009 7:18 pm

Re: Problems connecting from behind a proxy

Postby loftar » Sat May 30, 2009 8:52 pm

Well, I must admit that it is not a situation I have taken explicitly into consideration. According to this page, the SOCKS settings in Java only affect TCP connections, and Haven uses UDP for its main protocol, so maybe that's your problem. (It does sound a bit odd, though, since SOCKS5 is supposed to support UDP)

I haven't at all checked out how Java's proxy settings actually work and what effect they have, so I can't really say that I have any information to help you debug it. If you want to continue on your own, you'll just need to have the JAR files (haven.jar, haven-res.jar, jogl.jar and gluegen-rt.jar) in the same directory, and run the program as "java -Dhaven.defserv=sh.seatribe.se -jar haven.jar". As long as you don't specify the "haven.errorhandler" property from the JAR file, you shouldn't be bothered by the automated error handling.
The harder part is the native libraries used by JOGL. On Unix, you'd need them somewhere the dynlinker can find them; either somewhere specified in /etc/ld.so.conf, or somewhere in $LD_LIBRARY_PATH (in the latter case, you should be able to specify LD_LIBRARY_PATH=. and have them in the directory you start Java from). And yes, I think you actually have to extract them from the JAR they come in. On Windows, I don't know how it works.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9045
Joined: Fri Apr 03, 2009 7:05 am


Return to Bugs

Who is online

Users browsing this forum: No registered users and 2 guests