gnirehtet icon indicating copy to clipboard operation
gnirehtet copied to clipboard

Connection broken quickly

Open 2Dou opened this issue 2 years ago • 1 comments

2023-03-10 15:23:43.965 WARN TcpConnection: 10.0.0.2:46896 -> 10.254.0.182:22014 Unexpected first packet 2615517472; acking 2862870193; flags=16
2023-03-10 15:23:43.965 INFO TcpConnection: 10.0.0.2:46896 -> 10.254.0.182:22014 Close
2023-03-10 15:23:43.969 INFO TcpConnection: 10.0.0.2:46900 -> 10.254.0.182:22014 Open

Because my lan network is already using 10.x.x.x?

2Dou avatar Mar 10 '23 07:03 2Dou

You need to change the IP range gnirehtet uses to avoid overlapping with your LAN:

Option 1: Modify gnirehtet source (Rust) If you compile gnirehtet yourself, you can:

Edit the IP ranges in the relay server (RelayTunnel code)

Use a less likely subnet like 172.31.0.0/16 or 192.168.250.0/24

Option 2: Use USB tethering + adb reverse If you just need internet access, a workaround is:

adb reverse tcp:8080 tcp:8080 Or use USB tethering + system proxy instead of gnirehtet.

Option 3: Use a VPN App with Custom Subnet Apps like WireGuard, OpenVPN, or NetGuard can offer custom subnets and routing without conflict.

Pro Tip: You can check your current IPs with:

ip a and see if anything like 10.0.0.x is in use.

VaradGupta23 avatar Jul 10 '25 04:07 VaradGupta23