<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://www.seatribe.se/bt/bugzilla.dtd">

<bugzilla version="4.2"
          urlbase="http://www.seatribe.se/bt/"
          
          maintainer="fredrik@dolda2000.com"
>

    <bug>
          <bug_id>83</bug_id>
          
          <creation_ts>2012-11-10 10:39:00 +0100</creation_ts>
          <short_desc>Client should be able to override proxy settings</short_desc>
          <delta_ts>2012-11-11 15:27:59 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Salem</product>
          <component>Client</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows</op_sys>
          <bug_status>CONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Peter">peter.thoenen</reporter>
          <assigned_to name="loftar">fredrik</assigned_to>
          <cc>peter.thoenen</cc>
    
    <cc>theandromedan</cc>

      

      

      

          <long_desc isprivate="0">
            <commentid>272</commentid>
            <who name="Peter">peter.thoenen</who>
            <bug_when>2012-11-10 10:39:06 +0100</bug_when>
            <thetext>When I launch the client I get the following error after a long (5 or so minute) &quot;Authenticating....&quot; period - &quot;Reply from SOCKS server has bad version&quot;.  While java itself is configured to use &quot;browser settings&quot; that seems to be failing with Salem (my browser works fine).    To be honest, would prefer if Salem had it&apos;s own proxy settings or the ability (can I?) set it via java command line, something like --proxy:none or something.

If it matters, java and system version below:

C:\&gt;java -version
java version &quot;1.7.0_09&quot;
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) Client VM (build 23.5-b02, mixed mode)

C:\&gt;systeminfo | findstr /B /C:&quot;OS Name&quot; /C:&quot;OS Version&quot;
OS Name:                   Microsoft Windows 7 Ultimate
OS Version:                6.1.7601 Service Pack 1 Build 7601</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <commentid>273</commentid>
            <who name="loftar">fredrik</who>
            <bug_when>2012-11-10 16:13:01 +0100</bug_when>
            <thetext>I suggest you try setting Java&apos;s proxy settings to &quot;Direct connection&quot; instead of having it use the browser&apos;s settings.

&gt; To be honest, would prefer if Salem had it&apos;s own proxy settings
I would too, but I&apos;m not aware of any way I can override the system settings.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <commentid>274</commentid>
            <who name="Peter">peter.thoenen</who>
            <bug_when>2012-11-10 20:37:16 +0100</bug_when>
            <thetext>It&apos;s pretty easy to override the settings, I play a bunch of java games and there are standardized libraries for doing so (I&apos;m not a java guy but do know a bit of programming).  I know because I have identified this error to those other games also and it was fixed. You basically add a &quot;options&quot; option to the initial logon GUI and then allow folk to specify specific connection options (i.e. proxies, etc) which you then use as arguments when they click &quot;connect&quot;.

The problem here is if I move this to &quot;direct connect&quot; it&apos;s going to break a bunch of other stuff on my system and I really don&apos;t want to get into the game where I have to change my java settings every time I want to play.

Will give it a shot though later today when I get back and report but even if it works, it&apos;s not going to be an acceptable solution in the long run when this goes live.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <commentid>275</commentid>
            <who name="Peter">peter.thoenen</who>
            <bug_when>2012-11-10 20:39:59 +0100</bug_when>
            <thetext>Actually did a quick confirm, works with direct connect but still needs to be resolved.  It&apos;s also extremely odd it doesn&apos;t work with my browser proxy settings though the browser works, def something on the Salem side.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <commentid>276</commentid>
            <who name="loftar">fredrik</who>
            <bug_when>2012-11-11 06:27:16 +0100</bug_when>
            <thetext>If you know the name of any of those libraries, then, please do tell, so that I can check out how they do it. :)

Oh, and the reason it doesn&apos;t work with proxy is that Java&apos;s support for UDP over proxy is buggy or nonexistent (I&apos;m not sure which).

Also, renaming this issue.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <commentid>277</commentid>
            <who name="Peter">peter.thoenen</who>
            <bug_when>2012-11-11 08:49:51 +0100</bug_when>
            <thetext>Let me contact some java developers I know</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <commentid>281</commentid>
            <who name="Paul Franz">theandromedan</who>
            <bug_when>2012-11-11 15:27:59 +0100</bug_when>
            <thetext>You can define the socks server via the System properties. To do that on the command-line you type:

java -DsocksProxyHost=proxy.domain.com -DsocksProxyPort=8080

That will set the proxy settings for that JVM that is created. Now, from the looks of the initial post I am wondering if the issue is that the SOCKS version is a not a version 4 or 5 server. Which is the only version that is supported by Java.

Now, the Java program can support this via either setting the System properties in the app or using the Proxy/ProxySelector  class

http://docs.oracle.com/javase/6/docs/technotes/guides/net/proxies.html</thetext>
          </long_desc>
      
      

    </bug>

</bugzilla>