Code:
System.setProperty( "proxySet", "true" );
System.setProperty( "proxyHost", "24.151.169.51" );
System.setProperty( "proxyPort", "13139" );
try {
URL url=new URL("http://www.wieistmeineip.de/");
try {
InputStream is=url.openStream();
OutputStream os=new FileOutputStream("c:/output12.html");
int i;
while(( i=is.read())>-1){
os.write(i);
}
} catch (IOException ex) {
ex.printStackTrace();
}
} catch (MalformedURLException ex) {
ex.printStackTrace();
}
also der proxy funktioniert nicht aber statt einer io exception connected das ding einfach normal und ich bekomme meine echte ip zurück.
Was mache ich da falsch?
Zuletzt bearbeitet: