Nethogs → creating socket failed while establishing local IP – are you root?

Following update of my Kubuntu, I’m not able to monitor my network consumption using nethogs:

sudo nethogs enp1s0
creating socket failed while establishing local IP - are you root?


$ uname -a
Linux xyz 4.2.0-27-generic #32-Ubuntu SMP Fri Jan 22 04:49:08 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux


$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 15.10
Release:        15.10
Codename:       wily


$ nethogs -V
version 0.8.0

Here is Solutions:

We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.

Solution 1

This is solved by version 0.8.1.

As it’s not available in repo nor PPA you need to build it (it is really easy and quickly done).

Fetch and extract the most recent version (as of August 2016, v0.8.5)

wget -c
tar xf v0.8.5.tar.gz 
cd ./nethogs-0.8.5/

Install dependencies and build

sudo apt-get install libncurses5-dev libpcap-dev
make && sudo make install 

Check and run

nethogs -V
sudo nethogs

Solution 2

You can also build from latest source code in the git repository. You still need to install the dependency packages first. After building you can run nethogs from your current directory:

sudo apt-get install libncurses5-dev libpcap-dev
git clone --depth 1
cd nethogs
sudo ./src/nethogs

You can also find the instructions on the Nethogs project page.

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply