Skip to content

Not getting Interface IP in a linux docker container #597

Description

@taevt-iscte

Hi, I've been trying to work with this library for a while and currently I'm having an issue using it in a docker container, I get the following output when using LibPcapLiveDeviceList.Instance, same with New()
[ { "id": "{00000000-0000-0000-0000-000000000000}", "name": "eth0", "description": null, "ipAddresses": [], "selected": false }, { "id": "{00000000-0000-0000-0000-000000000000}", "name": "any", "description": "Pseudo-device that captures on all interfaces", "ipAddresses": [], "selected": false }, { "id": "{00000000-0000-0000-0000-000000000000}", "name": "lo", "description": null, "ipAddresses": [], "selected": false }, { "id": "{00000000-0000-0000-0000-000000000000}", "name": "docker0", "description": null, "ipAddresses": [], "selected": false }, { "id": "{00000000-0000-0000-0000-000000000000}", "name": "bluetooth-monitor", "description": "Bluetooth Linux Monitor", "ipAddresses": [], "selected": false }, { "id": "{00000000-0000-0000-0000-000000000000}", "name": "nflog", "description": "Linux netfilter log (NFLOG) interface", "ipAddresses": [], "selected": false }, { "id": "{00000000-0000-0000-0000-000000000000}", "name": "nfqueue", "description": "Linux netfilter queue (NFQUEUE) interface", "ipAddresses": [], "selected": false }, { "id": "{00000000-0000-0000-0000-000000000000}", "name": "dbus-system", "description": "D-Bus system bus", "ipAddresses": [], "selected": false }, { "id": "{00000000-0000-0000-0000-000000000000}", "name": "dbus-session", "description": "D-Bus session bus", "ipAddresses": [], "selected": false } ]
After some research I've found that linux systems do not attribute GUIDs to network interfaces, however they do have IP Adresses and I'm not getting them, is there something I'm doing wrong or is this an issue in the library?
PS: selected is my own field I've added, this is one layer up

Activity

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