Skip to content

Couldn't activate capture: socket: Address family not supported by protocol #521

@savanpatidar1576gmilcom

Description

@savanpatidar1576gmilcom

Environment

  • Platform: Windows Subsystem for Linux (WSL)
  • WSL Distribution: Ubuntu
  • sngrep version: sngrep - 1.8.3

Description

I have installed sngrep inside my Ubuntu environment on Windows Subsystem for Linux (WSL).
When I try to run sngrep, I get the following error message:

Couldn't activate capture: socket: Address family not supported by protocol

Steps to Reproduce

  1. Install sngrep inside Ubuntu on WSL
  2. Run sngrep from the terminal

Expected Behavior
sngrep should start and capture SIP packets (or at least show the interface selection).

Actual Behavior
It fails to start and shows the error mentioned above.

Additional Notes
I have tried installing libpcap using:

sudo apt update
sudo apt install libpcap-dev

Any suggestions or workarounds would be appreciated.

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