Questions tagged [networking]

Managing and using network connectivity on a Ubuntu system

Filter by
Sorted by
Tagged with
662
votes
22answers
1.4m views

Command for determining my public IP?

If I check with google, I can see my public IP. Is there something on the Ubuntu command-line which will yield me the same answer?
416
votes
20answers
788k views

How to display network traffic in the terminal?

how to display the actual network traffic (wireless) in a terminal? Additionally: Is it possible to add this info to the chart of top?
396
votes
6answers
707k views

How to know what program is listening on a given port?

I suspect a program is listening on port 8000 on my machine. When I run the following command, I get this error: > python -m SimpleHTTPServer # Lots of python error socket.error: [Errno 98] ...
341
votes
43answers
1.5m views

Installing Broadcom Wireless Drivers

I'm having serious problems installing the Broadcom drivers for Ubuntu. It worked perfectly on my previous version, but now, it is impossible. What are the steps to install Broadcom wireless drivers ...
252
votes
18answers
1.6m views

How to restart the networking service?

I tried to use sudo service networking restart and sudo /etc/init.d/network restart but they both crash the window manager and I can no longer use my keyboard for input into X. when I use the /...
224
votes
9answers
1.0m views

How do I find my internal ip address?

I have Ubuntu server 12.04 installed, so I have no GUI. When I do the command ifconfig, I cannot find my internl ip address. It says inet addr: 127.0.0.1 . Here is the output of ifconfig -a: eth0 ...
203
votes
14answers
392k views

How do I clear the DNS cache?

I just updated the DNS record (ns1, ns2, ns3.myhostingcompany.com) for a site I've got hosted, but I still get the domain registrar parking page. I'd like to see if the problem is Ubuntu's cached DNS ...
199
votes
5answers
139k views

How do I find out which process is eating up my bandwidth?

I think I'm being the victim of a bug here. Sometimes while I'm working (I still don't know why), my network traffic goes up to 200 KB/s and stays that way, even tough I'm not doing anything internet-...
174
votes
8answers
247k views

How do you test the network speed between two boxes?

I have a gigabit network set up in my house and a few Ubuntu based boxes. Out of complete curiosity I would like to check the speed between the two boxes. I am not having any problems with speed or ...
161
votes
7answers
470k views

How can I see what ports are open on my machine?

I would like to see what ports are open on my machine, e.g. what ports my machine is listening on. E.g. port 80 if I have installed a web server, and so on. Is there any command for this?
152
votes
10answers
123k views

Wifi doesn't work after suspend after 16.04 upgrade

This particular version of the "doesn't work after suspend" came after upgrading to 16.04. It seems that the upgrade includes a Wicd applet (added to Metacity Classic Gnome task bar alongside regular ...
152
votes
6answers
44k views

Best way to cache apt downloads on a LAN?

I have multiple Ubuntu machines at home and a pretty slow internet connection, and sometimes multiple machines need to be updated at once (especially during new Ubuntu releases.) Is there a way where ...
150
votes
1answer
280k views

What is the loopback device and how do I use it?

What are loopback and localhost? Why do they exist, what are they used for, and how would I use them?
131
votes
3answers
177k views

How do I install dig?

How do I install dig (the DNS lookup tool)? I can't figure out what the package name is.
127
votes
5answers
292k views

What is the equivalent of the “tracert” DOS command?

tracert is a command in MS-DOS command prompt to trace the route to an IP Address. Is there any command in the Gnome Terminal equivalent to this?
121
votes
9answers
386k views

16.04 LTS wifi connection issues with Realtek RTL8723BE adapter

I discovered several issues with wifi connection after installing 16.04 LTS. First, wifi doesn't reconnect normally after sleep or hibernation. Sometimes the network icon turns into a "up and down ...
117
votes
5answers
123k views

Network service discovery disabled: What does this mean for me?

Every time at boot I get a message “Network service discovery disabled. Your current network has a .local domain, which is not recommended and incompatible with the Avahi network service discovery. ...
113
votes
2answers
161k views

Why is my network interface named enp0s25 instead of eth0?

A lot of my scripts stopped working after installing Ubuntu 15.10 and I have trouble remembering this new name as I was used to ethx and wlanx for years. Is there a reason for this change? Do I have ...
112
votes
7answers
105k views

How do I SSH to machine A via B in one command?

I want to access a computer, say machine A which is based in my university's network. However, this computer is only accessible via the internal network of the university, so I can not use SSH to this ...
99
votes
5answers
468k views

How to successfully restart a network without reboot over SSH?

In Ubuntu 14.04 neither sudo service networking restart nor sudo /etc/init.d/networking restart do anything any more. They also both exit with code 1. Something has obviously changed (or half changed) ...
99
votes
6answers
226k views

In VirtualBox, how do I set up host-only virtual machines that can access the Internet?

In setting up virtual machines with VirtualBox, I often want the following characteristics vm has a static ip host can access vm without port forwarding vm can access the internet I can move my ...
98
votes
5answers
347k views

How to find all the used IP addresses on a network

In my work there is a lot of computer and I want make a joke. I can close computer over the network but finding IP addresses is hard to me. How can I easily find all online IP adresses from 192.168.1....
95
votes
14answers
149k views

How can I capture network traffic of a single process?

I would like to examine the network traffic being handled by a single process, but simple network captures won't work since I am dealing with such a busy system (lots of other traffic happening at the ...
90
votes
12answers
404k views

List all MAC addresses and their associated IP addresses in my local network (LAN)

How can I list all MAC addresses and their associated IP addresses of the machines connected to my local network (LAN)?
85
votes
7answers
86k views

Last upgrade crashes network manager (no internet connection, no applet)

While upgrading today, something caused my wireless network manager to disappear. Not even connecting via wired connection. This error is being shown by files: **(nm-applet:2716): WARNING **: Could ...
84
votes
3answers
123k views

netstat or alternative in docker ubuntu server 16.04 container

Was netstat removed in 16.04? Is there an alternative to netstat available in 16.04? Or how do I install netstat in 16.04? I am running an ubuntu:16.04 container in docker for Windows, it seems that ...
82
votes
8answers
202k views

How to run “sudo apt-get update” through proxy in commandline?

In my office i want to update and download through (wget) and here they are using proxy? How can i do this by commandline?
81
votes
6answers
169k views

After modifying /etc/hosts which service needs to be restarted?

After modifying /etc/hosts, which service(s) need(s) to be restarted for the change to take effect?
80
votes
4answers
209k views

How can I display the list of available WiFi networks?

My Ubuntu laptops's WiFi works fine on various Wifi networks. But the list of available networks accessed from the toolbar icon of nm-applet by no longer appears. I just see the known networks. The ...
79
votes
4answers
75k views

apt-get update stuck: Connecting to security.ubuntu.com

When I run apt-get update on my machine it gets stuck at: 100% [Connecting to security.ubuntu.com (2001:67c:1562::15)] [Connecting to archive.canonical.com (2001:67c:1360:8c01::16)] I have made no ...
79
votes
5answers
90k views

Wireless networking not working after resume in Ubuntu 14.04

[Update]: The same problem exists in Kubuntu and is solved in the same manner. [Solved]: By applying the following command nmcli nm I got the following: Before suspend RUNNING STATE ...
78
votes
3answers
78k views

How I can limit Download/Upload bandwidth?

How I can limit Download/Upload bandwidth for: Entire OS. One network interface. Single application.
74
votes
6answers
185k views

How to network two Ubuntu computers using ethernet (without a router)?

How can I network two Ubuntu computers, so that they can "see" each other at an IP address?
73
votes
7answers
476k views

No internet connection on Virtualbox (Windows 7 as guest, ubuntu 13.04 as host)

Internet works perfectly on host (Ubuntu 13.04, 32 bit, fully updated) but cannot connect to internet on guest Windows 7 (under Virtualbox 4.2). Have tried NAT and Bridge Network - none worked. I had ...
72
votes
6answers
230k views

“waiting for network configuration” Problem

This problem happens sometimes when ubuntu starts up. You can't really boot to the interface sometimes. Splash Screen with the 5 dots and a message saying: waiting for network configuration ...
70
votes
6answers
94k views

How do I find out the name of the SSID I'm connected to from the command line?

Neither iwconfig nor iwlist seem to be able to do this for me.
70
votes
13answers
10k views

How would a local government make the switch from Windows to Ubuntu?

I work in a municipal government where Windows is used throughout our institution. People use computers in our institution mainly for browsing the internet and using MS Excel or Word. I was thinking ...
70
votes
4answers
152k views

How to inspect outgoing HTTP requests of a single application?

My application is sending HTTP requests to some server and I want to see the actual data that it is sending out. Some specifics I would like to see: Request method (GET/POST/PUT, etc.) Content-type ...
69
votes
8answers
309k views

How to see all computers connected to a network

I am in a LAN and there are 3 Ubuntu, 2 Kubuntu, 2 Windows XP and 2 Windows 7. What commands or tools are available to see what PCs are connected to the LAN that it shows the name of the PC and the IP....
68
votes
2answers
31k views

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? Kernel $ uname -...
68
votes
3answers
175k views

How to share files through the local network?

I have a desktop (Ubuntu 13.04 & Win 7 Home Premium) and a Laptop (Ubuntu 12.04), both having WiFi adapters. I also have a WiFi router connected to internet which both my computers can access. I ...
67
votes
7answers
82k views

How to monitor bandwidth usage per process? [duplicate]

I am using Ubuntu 14.04. My internet connection is pretty slow (512 kbps). Sometimes I see that I have no software running which should download anything from the internet, but the system monitor ...
66
votes
6answers
142k views

chat over lan from linux to linux?

As I recall there was something like netsend on windows that allowed simple messages to be sent over the local network. I especially like this because one doesn't need to install extra client soft (...
66
votes
4answers
539k views

Assigning a static IP to Ubuntu Server 14.04 LTS

I've installed Ubuntu 14.04 LTS Server in my machine on a separate hard drive alonside my Windows 7 installation. The Windows OS has full network connectivity and internet access through the Ethernet, ...
65
votes
2answers
165k views

What are the main differences between VirtualBox networking types? [closed]

I'm trying to use VirtualBox to host a couple of VMs. Each VM should be able to connect to the Internet (this is needed primarily to install software) My Host browser should be able to connect to the ...
64
votes
2answers
252k views

restart network interface after editing /etc/network/interfaces [duplicate]

restart the network service: service networking restart When I give the above command I get something like stop: Unknown instance: networking stop/waiting I would like to know if the network ...
64
votes
1answer
160k views

How do I setup an Icecast server for broadcasting audio in my network?

Broadcasting the output of the soundcard as an internet radio stream is a reliable way to stream audio in a network. This can nicely be used to e.g. transmit audio in a wireless LAN to another ...
63
votes
0answers
87k views

How can I find my public IP using the terminal? [duplicate]

I am on DHCP, having dynamic IP. Finding your public IP when using a GUI and a browser is extremely easy. Simply go to Google.com and search for "What is my IP". Google will display it in the very ...
62
votes
6answers
280k views

How do I fix a “Wireless is disabled by hardware switch” error?

I just updated to Ubuntu 12.04 from 11.10 but soon after updating I was disappointed to see that Wireless is disabled by hardware switch. I can not click the button 'Enable wireless' which is ...
61
votes
3answers
83k views

nameserver 127.0.1.1 in resolv.conf won't go away!

I've read that I should have nameserver 127.0.1.1 in my /etc/resolv.conf file only if my machine has its own DNS server. Since it doesn't, having it causes problems. But no matter what I do I can not ...

1 2 3 4 5 352