Author Topic: Java Client Proxy Script  (Read 1976 times)


  • Newbie
  • *
  • Posts: 1
    • View Profile
Java Client Proxy Script
« on: October 21, 2010, 03:25:11 AM »
Hello folks,

I am searching all over the web. Maybe somebody can help me here.

We are using a proxyscript that routes you to the appropriate proxy depending on the ip segment your workstation is in.

It looks like that:

Code: [Select]
function FindProxyForURL(url, host)
    if(isInNet(myIpAddress(),"","")) {"return proxy1-1:80";}
    return "proxy1-2:80";

That works fine with the IE and FF.

Unfortunately it does not work when the Java client takes action. If a PC is in the /24 segment, the Java client gets routet to proxy1-2. This inavoidable results in errors because the proxy1-2 is not reachable out of the /24 segment.
The Java client is configured to use the Browser-network-settings and running the Java client in debug mode shows that it is taking the right proxyscript but for some reason does not work with the: "isInNet(myIpAddress..." - command.

Can somebody help me?

Kind regards