SciLor's Open Source Forums
http://forum.scilor.com/

Proxy
http://forum.scilor.com/viewtopic.php?f=228&t=994
Page 1 of 1

Author:  vato [ Thu Jan 19, 2012 11:03 pm ]
Post subject:  Proxy

Hi Scilor,
like you know Grooveshark has banned the users in Germany. Your Tor solution works good.
It would be great when we have a similar solution in Java. I looked at the ban and it seems like they only check on connection. When connected its possible to search and stream with a german ip. Would it be possible to set a proxy through which the connection is established?
Should be easy:
Code:
SocketAddress addr = new InetSocketAddress("proxy.de", 80);
Proxy proxy = new Proxy(Proxy.Type.HTTP, addr);
URL url=new URL("http://www.wieistmeineip.de/");
URLConnection conn = url.openConnection(proxy);
InputStream is=conn.getInputStream();

Thanks and Greetings
vato

Author:  SciLor [ Sun Jan 22, 2012 2:22 am ]
Post subject:  Re: Proxy

Thank you, already done without a proxy :P

Author:  vato [ Mon Jan 23, 2012 11:57 am ]
Post subject:  Re: Proxy

Awesome. Thanks :)

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/