I have a class that produces URLConnections with the (earlier) specified RequestHeaders and if necessary a local-proxy (JonDo, port 4001).
I have a function that checks if the proxy works properly comparing the IP-addresses (extracted from http://www.whatismyip.com/automation/n09230945.as ). I call out of the class the GetConnection-Function that returns the connection, having the proxy ACTIVATED. then i call a new instance of the class with the proxy DESACTIVATED (port = -1).

it still uses the proxy, although i "switched it off"...

any ideas? help? anything?
thanks :)

code snippets:
Java Code:
if (JAPPort != -1) {
            useJAP = true;
            JAPport = JAPPort;
        } else {
            useJAP = false;
Java Code:
if (useJAP) {
                System.getProperties().put("proxySet", "true");
                System.getProperties().put("proxyPort", Integer.toString(JAPport));
                System.getProperties().put("proxyHost", "");
            } else {
                System.getProperties().put("proxySet", "false");
                System.getProperties().put("proxyPort", "");
                System.getProperties().put("proxyHost", "");
Java Code:
URLConnection conn = GetConnection(
            BufferedReader reader = new BufferedReader(new InputStreamReader(
            String IP = reader.readLine();

            Connecter cnt = new Connecter(-1);
            URLConnection conn2 = cnt.GetConnection(
            BufferedReader reader2 = new BufferedReader(new InputStreamReader(
            String trueIP = reader2.readLine();

            System.out.println("Your true IP: "+trueIP);
            System.out.println("The JAP's IP: "+IP);