question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't connect to internet

See original GitHub issue

Hi,

I’m having problems trying to reverse tether my android device (Galaxy S4 i9505, Lineage OS 14.1). I have enabled USB debugging, installed Android Debug Tools, the latest JRE, and Git Bash on Windows, extracted the gnirehtet files on the same folder as adb, manually installed the apk via cmd.exe, and am currently using a batch file to automatically start the relay server and client. The key icon appears on my device, and a whole lot of TCP and UDP connections show up on my command prompt window.

However, internet connection on my device is not established, for any app. I had a feeling WhatsApp might not work because I’m using my company workstation to reverse tether and they block IPs from them, but even things like opening the Google web page on Chrome don’t work.

Attached is the logcat initiated just before starting the relay and client connections, and opening the Chrome app and trying to connect to UOL (news website) and Google. Does this help?

adb reverse --list tells me reverse forwarding is enabled: (reverse) tcp:31416 tcp:31416 netstat -na | find "31416" tells me the relay server is listening: TCP 127.0.0.1:31416 0.0.0.0:0 LISTENING

Thanks!

logcat.txt

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
brauliomdutracommented, Jun 22, 2017

Great, that was exactly it!

For future reference, I found out the proxy being used on my corporate computer using this command (on Windows, with admin privileges), after opening a webpage on IE:

netstat -ban

Look for the iexplore.exe process and the proxy will be under the foreign addresses.

Thank you for you assistance!

1reaction
rom1vcommented, Jun 21, 2017

In your relay server logs, we can see that all TCP connections fail:

2017-06-21 14:19:18.302 E TCPConnection: TCP 10.0.0.2:51257 -> 157.240.12.9:443 Cannot finish connect

Your network probably requires to use a proxy.

Here is how you can configure proxy settings in Android: https://github.com/Genymobile/gnirehtet/issues/4#issuecomment-292917846 More details about (lack of) proxy in gnirehtet: https://github.com/Genymobile/gnirehtet/issues/27#issuecomment-296404498

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't Connect to Internet? How to Troubleshoot - Electric AI
Can't Connect to Internet ? Here's 9 Ways to Troubleshoot · 1. Check for Physical Connectivity Issues · 2. Restart the Router ·...
Read more >
No Internet Connection? How to Troubleshoot Internet Issues
It's a good idea to try some basic troubleshooting before contacting your provider. Restarting your modem and checking wires will likely be the ......
Read more >
Can't Connect to the Internet? Try These Tips - Lifewire
Confirm your wired or wireless network hardware is switched on and plugged in · Before assuming your internet connection is faulty, visit several ......
Read more >
Device Can't Connect to Wi-Fi? Here's What to Do
Reset your network: Reset your network by using your laptop. In Windows, go to “Settings,” then “Network & Internet,” then “Status” and click...
Read more >
[Solved] Unable to Connect to the Internet? Here's Solution
Your device can't link to the network · Use Internet Connections troubleshooter · Reset your network adaptor and TCP/IP · Release and renew...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found