-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[Linux] Network module shows offline all the time #460
Comments
Could you give me a list of your NICs? |
3D globe and network traffic monitor are showing OFFLINE too. EDIT: I understand most of the code (haven't write a single line in JS though), but this part of the netstat class does not make sense to me:
I assume the while loop does not pick my local network and the above case sets the offline flag. |
The part of There should be a tiny text in the top right corner of the netstat module indicating the interface it's trying to monitor. Can you confirm that's the right one? |
|
Seems like you got multiple addresses linked to that interface, and I'm not quite sure how the JS code is handling that. Try opening the dev tools in eDEX ( Copy/paste the JSON output here please. Also, it would be helpful if you could run it a few times and check if the output is consistent - notably in the |
Hi, The output is consistent:
|
Okay, all good so far. Can you give me the output of the following command in eDEX's dev console?
|
@GitSquared, thanks for your time and effort for solving this. It looks right to me, except the "offlineVerdict" value 👎
|
Indeed. I'm going to continue investigating this tomorrow, hopefully i'll have something for you. |
@presianbg Could you try this test version? I'm exactly sure it will fix the problem but doesn't hurt to try. |
Seems like a case of #446 on linux too... Well that one at least will be easy to fix. Gonna have to try something else to fix your original issue though. Hang tight!.. |
Works flawlessly :) Thanks! |
Great! So here's what's going on: After the geoip API call, there's another test that tries to determine the latency (ping) of your connection. It's using external software utilities and because of that, doesn't necessarily run on the NIC selected by eDEX. Your screen probably shows In the build I just sent you, I just commented out the line that triggered the offline state when the ping failed. To actually fix the issue, I'm going to look into making the geoip call send back some latency report - not sure how though. I tried replacing the ping implementation with something that would use Node's built-in networking modules and always work on the right NIC, but using ICMP packets with Node requires root privileges :/ |
Yes, this is correct. You may try using something like that:
I mean it's not the perfect solution, but it's not mandatory to use ICMP :) |
ipinfo.now.sh is no longer working. moved to ipinfo.io |
Hi,
Great project.
The network module seems to not working in Solus Linux. It shows "OFFLINE" all the time.
Detected NICs are correct + ping to 1.1.1.1 is OK.
Changing the LAN to WLAN and the address for test is not giving any different results.
My public IPv4 address is blinking.
Is there a way to debug and troubleshoot this issue? I'm running it from AppImage.
The text was updated successfully, but these errors were encountered: