linuxmint / warpinator

Share files across the LAN
GNU General Public License v3.0
1.17k stars 80 forks source link

select ip not correct. how to set manual? #186

Open xoyteam opened 11 months ago

xoyteam commented 11 months ago

Distribution

Linux Mint 21.1

Package version

1.4.5

Frequency

Always

Bug description

when there is more than one ip address on an interface, wrapinator chooses the wrong ip. because of which the connection with the device is not established.

Steps to reproduce

Выделение_071 Выделение_070

Expected behavior

how to manage the selection ip address manually?

Additional information

No response

mtwebster commented 11 months ago

There's no way to do this at the moment. I could have a look at breaking out these multiple addresses in the interface selector in preferences.

Can you provide the output from:

python3 -c "import netifaces;print(netifaces.ifaddresses('eno1'))"
xoyteam commented 11 months ago

Thanks for the answer!

There's no way to do this at the moment. I could have a look at breaking out these multiple addresses in the interface selector in preferences.

Can you provide the output from:

python3 -c "import netifaces;print(netifaces.ifaddresses('eno1'))"

{17: [{'addr': '08:2e:5f:xx:xx:xx', 'broadcast': 'ff:ff:ff:ff:ff:ff'}], 2: [{'addr': '192.168.1.100', 'netmask': '255.255.255.0', 'broadcast': '192.168.1.255'}, {'addr': '192.168.0.100', 'netmask': '255.255.255.0', 'broadcast': '192.168.0.255'}, {'addr': '192.168.42.100', 'netmask': '255.255.255.0', 'broadcast': '192.168.42.255'}, {'addr': '172.16.42.4', 'netmask': '255.255.255.128', 'broadcast': '172.16.42.127'}], 10: [{'addr': 'fe80::4686:131f:b230:e453%eno1', 'netmask': 'ffff:ffff:ffff:ffff::/64'}]}

image The matter is complicated by the fact that the addresses 192.168.[0,1,42] are added statically. And the address 172.16.42.4 is received dynamically. (Apparently, this is why he is last on the list) image

I think it would be wise to choose the address that is the default route. Or, in extreme cases, specify it manually, for example, through a configuration file.