Giter VIP home page Giter VIP logo

Comments (8)

MSajidJuneja avatar MSajidJuneja commented on June 14, 2024

@n8fr8 Can you please look into this issue?

from tor-android.

n8fr8 avatar n8fr8 commented on June 14, 2024

Are you manually setting your proxy setting to 8118 or using some other custom configured proxy settings?

from tor-android.

MSajidJuneja avatar MSajidJuneja commented on June 14, 2024

@n8fr8 I am setting proxy via code in app like this.

System.setProperty("java.net.useSystemProxies", true.toString()) System.setProperty(ProxyEnvVar.HTTP_PROXY_HOST.value, "127.0.0.1") System.setProperty(ProxyEnvVar.HTTP_PROXY_PORT.value, "8118") System.setProperty(ProxyEnvVar.HTTPS_PROXY_HOST.value, "127.0.0.1") System.setProperty(ProxyEnvVar.HTTPS_PROXY_PORT.value, "8118") System.setProperty(ProxyEnvVar.SOCKS_PROXY_HOST.value, "127.0.0.1") System.setProperty(ProxyEnvVar.SOCKS_PROXY_PORT.value, "9050")

from tor-android.

MSajidJuneja avatar MSajidJuneja commented on June 14, 2024

@n8fr8 Did you get a chance to look into this issue?

from tor-android.

n8fr8 avatar n8fr8 commented on June 14, 2024

The Tor HTTP proxy only supports HTTPS traffic. That is just the way it is. Better to use the Orbot VPN feature or Tor browser for Android, if you really need to access HTTP traffic.

You can also just use the SOCKS proxy, since it will support HTTP and HTTPS.

from tor-android.

MSajidJuneja avatar MSajidJuneja commented on June 14, 2024

@n8fr8 Im using firefox android source and want to implement tor in it. Do you know how we can set in it so we can access HTTP links?

from tor-android.

n8fr8 avatar n8fr8 commented on June 14, 2024

You can set SOCKS proxy directly in Firefox, and it will handle all HTTP and HTTPS traffic just fine. Don't use the HTTP proxy at all.

from tor-android.

MSajidJuneja avatar MSajidJuneja commented on June 14, 2024

@n8fr8 I have set proxy as mentioned in previous comment like this as I have to do it programmatically.

System.setProperty("java.net.useSystemProxies", true.toString()) System.setProperty(ProxyEnvVar.SOCKS_PROXY_HOST.value, "127.0.0.1") System.setProperty(ProxyEnvVar.SOCKS_PROXY_PORT.value, "9050")

It still does not work. I get error "cannot access network. check your proxy settings". I also tried Orbot VPN code and found that it disallows own package name in VPN builder, the app in which code for VPN is there. When i comment this disallow line, it cannot connect to tor network and says rejected socks error and i when dont comment any line, it connects but own app cannot access tor network. Can you please tell what can i do in these 2 scenarios? Using programmatically or using VPN code.

from tor-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.