Hallo,
ich versuche grad TOR in Java einzubinden. Also eine Webseite heruntrelade mittles TOR. Mein Code:
Alles anzeigen
Leider gibts ne IOException:
Ich benutze TOR-Button...
Hat einer Informationen wie das steuern von TOR funktioniert... aka. ich möchte neue IP
ich versuche grad TOR in Java einzubinden. Also eine Webseite heruntrelade mittles TOR. Mein Code:
Quellcode
- System.setProperty("http.proxyHost","127.0.0.1");
- System.setProperty("http.proxyPort","9050");
- try{
- URL url=new URL("http://www.wieistmeineip.de/");
- try {
- InputStream is=url.openStream();
- int i;
- while(( i=is.read())>-1){
- System.out.write(i);
- }
- } catch (IOException ex) {
- ex.printStackTrace();
- }
- } catch (MalformedURLException ex) {
- ex.printStackTrace();
- }
Leider gibts ne IOException:
java.io.IOException: Server returned HTTP response code: 501 for URL: wieistmeineip.de/
at sun.net.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.URL.openStream(Unknown Source)
at Run.main(Run.java:28)
Ich benutze TOR-Button...
Hat einer Informationen wie das steuern von TOR funktioniert... aka. ich möchte neue IP