Comments (5)
Excellent! I'll close this now, glad that sorted it for you 👍
from httptoolkit-android.
Thanks @thorbn. When this happens, does anything appear on the 'View' page on your computer? If the phone can connect to your computer, there should be at least one http://android.httptoolkit.tech/config
request there that's sent during setup.
from httptoolkit-android.
Hello. There is nothing appearing in the "View" tab on my computer. I don't get anything on my computer, just the error message on my phone.
from httptoolkit-android.
Ok, it's almost certain that there's some kind of connectivity issue in that case. At this stage the app is sending an HTTP request to your computer on your proxy port (8000, by default) testing each of your computer's IP addresses to see how to connect, and it's not arriving on any of them.
There's lots of things that can cause this unfortunately. Some networks don't allow connectivity between local devices, which would do this, as would a firewall on your computer that blocks all connections to that port.
You can test connectivity by trying to open http://<your computer's IP>:8000/
in a browser on your device. If you can connect, you should see a request appear on the View page, and see a response appear in the browser on your phone (typically a message like 'Passthrough loop detected' unless you've added a custom rule, because you're not really supposed to make direct requests to the proxy). In this case though, you'll probably see an error that may tell you more about the connectivity issues.
If none of that comes up with any clues, you can also try looking at the raw logs from the device. Those are available via ADB with adb logcat -T1
, and you'll see messages in there like:
tech.httptoolkit.android.MainActivity: Connecting to VPN from URL: https://android.httptoolkit.tech/connect/?data=...
tech.httptoolkit.android.ProxySetup: URL data is {"addresses":["$IP", "$ANOTHER_IP"],"port":8000,"localTunnelPort":8000,"certFingerprint":"QWEASDQWEASDqweasdqweasd="}
tech.httptoolkit.android (kotlinx.coroutines.SupervisorCoroutine): Validating proxy info ProxyInfo(addresses=[$IP, $ANOTHER_IP], port=8000, localTunnelPort=8000, certFingerprint=QWEASDQWEASDqweasdqweasd=)
tech.httptoolkit.android (kotlinx.coroutines.SupervisorCoroutine): Proxy tests started
tech.httptoolkit.android (kotlinx.coroutines.UndispatchedCoroutine): Testing proxy $IP:8000
tech.httptoolkit.android (kotlinx.coroutines.UndispatchedCoroutine): Testing proxy $ANOTHER_IP:8000
tech.httptoolkit.android (kotlinx.coroutines.UndispatchedCoroutine): Error testing proxy address $IP: java.net.ConnectException: Failed to connect to $IP
tech.httptoolkit.android (kotlinx.coroutines.UndispatchedCoroutine): Error testing proxy address $ANOTHERIP: java.net.SocketTimeoutException: connect timed out
That will at least tell you exactly what IPs were used, and what the connection errors are. It's also technically possible something else could be failing here and causing this behaviour, and that will be listed in here if so, but I've never seen anything but connectivity problems cause cases like this so I'd be pretty surprised.
from httptoolkit-android.
Thanks for your help. I deactivated all firewalls that could be causing this and now it's working!
from httptoolkit-android.
Related Issues (16)
- F-Droid inclusion HOT 3
- Waydroid support HOT 2
- PIN-protect autostart HOT 1
- Android TV compatibility HOT 15
- Get Hostname/Domain from the TCP packet HOT 2
- Certificates rejected with app saying system trusted enabled HOT 39
- Error ERR_CERT_DATE_INVALID when using ADB method HOT 4
- Certificate rejected arbitrarily after showing "System Trust Enabled" HOT 3
- [Android TV] Certificate rejected/Aborted connection after showing "System Trust Enabled" HOT 2
- CA Location? HOT 2
- Disable always-on VPN HOT 3
- httptookit on emulator HOT 3
- 可以做到完全本地一个应用运行吗?即APP拿到流量直接本地转发到原始地址去,不经过任何服务器 HOT 5
- Doesn't work properly in andriod rooted using Magisk HOT 24
- Intercepting Windows Subsystem for Android (WSA) with HTTP Toolkit HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from httptoolkit-android.