-
Notifications
You must be signed in to change notification settings - Fork 244
Can't connect via non-primary network connection (ENETUNREACH) #27
Comments
Is the wi-fi connection working properly on its own? Have you tried starting a proxy on the wi-fi connection only? |
Yes, both connections (wi-fi and 3g) working properly. Debug log, but there is nothing useful cause proxy is working. |
Your system might be disabling the secondary connection while the primary is running. Could you try to set the wi-fi as your primary connection and the 3g as your secondary connection? |
Ping to wi-fi router is working means that connection is not disabled. I think calling it "primary" not absolutely correct. I don't found any settings (without custom programs) that sets connection priority. What I'm call "primary" is just connection that Windows prefer. As I mentioned before I'm tried on 3 diffrent computers. First is just my Windows. Second one is almost clean installation of Windows. The last one is clean installation of Linux (Ubuntu). The problem is same everywhere. Also I tried connecting only two modems (without wi-fi connection). Result pretty similar: start proxy with first connection - proxy wokring, start proxy with other connection - proxy doesn't working (or vice versa - first connection doesn't working and the second connection is working). My first guess is that problem somewhere in "route" settings. I don't touched them yet but seen solutions using these settings. Feel free to express guesses. I can try any variants or give access to my computer if that necessary. |
To set adapter priority order on Windows, go to Control Panel -> Network and Internet -> Network and sharing center -> Change adapter settings, press Alt on the keyboard, then go to Advanced -> Advanced settings. |
Adapter priority did not help. I surge against this problem for almost a month. I tryed others proxy servers, tryed writing my own on C#. All of them has same problem - once I connect two network connections at the same time then only one of two connections works. I can't understand why it don't working for me and working for you and others users of dispatch-proxy. Can you say which OS you are using? And also which network connections do you dispatch (3G, wire, wireless)? |
I've tried it on Mac OS X and Windows, using 3G from my phone + wifi, and wifi + ethernet connection. I've never run into your problem. |
Thank you. Which version of Windows - 7 or 8? 32-bit or 64-bit? |
Windows 8 and 8.1 64bit. |
Did you manage to solve your problem? Cause I have the exact same problem on my raspberry pi. |
No, I wasn't solved it. I had similar problems with other proxy servers too (only one internet connection works at the same time). So I decided that problem in my hardware, drivers or something like this. P.S. Cause I still needed several connections per one PC, I created a virtual machine per each connection and launched proxy server on each of this VMs. That's pretty dirty trick but it works. |
I finally could solve it, but with Linux. I'm launching the proxy in a Raspberry Pi, and I'm using it on my PC and phone. It working great. I'll write the solution in an other Ubuntu 12.04 not working issue. |
The same problem watching on windows XP. |
MS TCP Loopback interface C:\Documents and Settings\Alex>dispatch start 192.168.42.163 10.136.157.215 -p 1098 C:\Documents and Settings\Alex>dispatch list Подключение по локальной сети 27 MTS MS TCP Loopback interface C:\Documents and Settings\Alex>dispatch start 192.168.42.163 10.136.157.215 -p 1098 C:\Documents and Settings\Alex>dispatch list Подключение по локальной сети 27 MTS MS TCP Loopback interface C:\Documents and Settings\Alex>dispatch start 192.168.42.163 10.161.7.169 -p 1098 C:\Documents and Settings\Alex>dispatch list Подключение по локальной сети 27 MS TCP Loopback interface C:\Documents and Settings\Alex>dispatch list Подключение по локальной сети 34 Подключение по локальной сети 27 MS TCP Loopback interface C:\Documents and Settings\Alex>dispatch start 192.168.42.207 10.161.7.169 -p 1098 |
No, I didn't found an solution. |
I used manually routes and now everything works. |
@Stepman123, thanks, suggest to disable "use default gateway" was very useful. BTW, metric doesn't matter. It working with different metrics. So, here is complete solution (for the ones who would find this page in Google). Solution0) Disable "use default gateway" if using 3G/4G dongleIf you using 3G/4G dongle (modem) then you need to disable option "use default gateway" (that can be done in "Network connections" -> right click on connection -> Properties -> "Networking" tab -> select Version 4 -> click Propetries -> uncheck "use default gateway") Then you need to add route for non-primary network. In my case I have Wi-Fi (gateway 192.168.0.1) and dongle (gateway "On-link" or 0.0.0.0). 1) Open
|
@Morhaus, I think you can close this issue. |
If used 2 3G modem, there's no way to add persistent routes. Here is the list of interfaces: 0x1 ........................... MS TCP Loopback interface 0x60004 ...00 1e 10 1f 3e 8b ...... HUAWEI Mobile Connect - 3G Network Card #5 - Kerio Control |
dispatch list:
3G (10.215.12.205) is primary connection in Windows. I thinks so cause whatismyip.com says that I have ip from 3G when I open it in browser without proxy.
Wi-fi (192.168.0.104) is non-primary connection.
I start proxy on non-primary connection:
And get errors:
I see the same errors when I start proxy using both internet connections. There is no errors when I start proxy using primary internet connection.
Log with debug enabled
I already tried on 3 computers (2 Win7 and 1 Linux) - on all of them proxy using non-primary connection is not working.
Am I'm missed some setting or something?
BTW, thanks for your program. I've dreamed of such thing for the whole time.
The text was updated successfully, but these errors were encountered: