Skip to content

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

Open

Description

@xoyteam

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

Activity

  1. mtwebster commented on Aug 10, 2023

    @mtwebster
    Member

    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'))"
    
  2. xoyteam commented on Aug 10, 2023

    @xoyteam
    Author

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions