Managing and using network connectivity on a Ubuntu system

learn more… | top users | synonyms (1)

246
votes
20answers
500k 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?
133
votes
12answers
217k views

How to display network traffic in 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?
127
votes
6answers
228k 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 that error: > python -m SimpleHTTPServer # Lots of python error socket.error: [Errno 98] ...
122
votes
6answers
30k 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 ...
121
votes
16answers
608k 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 /...
101
votes
12answers
175k 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 ...
90
votes
5answers
42k 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-...
75
votes
6answers
46k 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 ...
73
votes
1answer
102k 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?
70
votes
6answers
74k views

How do you test the network speed betwen two boxes?

I have gigabit network setup in my house and 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 ...
68
votes
4answers
121k 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?
68
votes
6answers
63k 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 ...
64
votes
4answers
260k 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) ...
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 ...
55
votes
7answers
210k 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 output of ifconfig -a: eth0 link ...
54
votes
3answers
45k views

How I can limit Download/Upload bandwidth?

How I can limit Download/Upload bandwidth for: Entire OS. One network interface. Single application.
53
votes
13answers
69k 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 ...
53
votes
11answers
209k 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)?
51
votes
3answers
84k 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?
51
votes
4answers
55k 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. ...
51
votes
1answer
108k 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 ...
48
votes
6answers
193k 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 ...
45
votes
6answers
143k 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 ...
43
votes
7answers
72k 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 (...
43
votes
9answers
56k views

What's the best way to SSH to machines on the local network?

I have 2 computers, one that I use and one for the kids. I want to be able to ssh into their computer to control it (like to shut it down etc) but am curious the best way to do this. We both are in ...
40
votes
10answers
91k views

What is the correct way to restart udev?

I've changed the name of my eth1 interface to eth0. How to ask udev now to re-read the config? service udev restart and udevadm control --reload-rules don't help. So is there any valid way ...
37
votes
2answers
25k views

connecting to archive.ubuntu.com takes too long

I have a Ubuntu 11.10 server that I just installed fresh. Now if I try to do anything with apt-get, it tries to connect to archive.ubuntu.com .. It stays at [Connecting to archive.ubuntu.com (2001:67c:...
36
votes
3answers
52k views

How do I install dig?

How do I install dig? I can't figure out what the package name is.
34
votes
13answers
50k views

Nice network diagram editor?

Writing a commercial proposal, I want to create a nice graphic showing the clients the architecture I thought of for their IT network, with servers, network connections, firewall, load-balancing, etc. ...
33
votes
6answers
115k 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....
33
votes
5answers
102k 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 ...
33
votes
5answers
60k views

Can't connect to WPA2 Enterprise PEAP

My university uses WPA2 Enterprise encryption for students to login their wireless. In NetworkManager I have keyed in everything that they needed Security : WPA & WPA2 Enterprise Authentication ...
33
votes
6answers
69k views

“Waiting for network configuration” adding 3 to 5 minutes to boot time

I get the following pieces of information at the startup, takes about 3 to 5 minutes, while normally about 1 minute: Waiting network configuration Booting system without full network configuration ...
33
votes
4answers
14k views

How can you monitor internet download usage?

Some broadband providers impose a monthly download limit, charging extra if you go over. It is also quite easy to exceed some of the lower limits just by installing/updating packages and 'normal' ...
32
votes
4answers
12k views

How to run a script, depending on internet connection

I often mount a remote drive using sshfs. I would love to have this mount automatically. However, if I mount it in my .bashrc or startup scripts, the mount often fails because my wireless internet ...
32
votes
1answer
87k views

How do I add a network printer in Ubuntu 12.04?

I know the name and the IP address of a network printer, but I can't seem to be able to search by IP address or name. Ubuntu developers love to move things around to make it difficult for users, so ...
32
votes
1answer
64k views

How to share files through the local network? [duplicate]

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 ...
31
votes
2answers
7k 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 -...
31
votes
2answers
13k views

Network disabled on some wake-ups on saucy laptop [closed]

Since I upgraded to Saucy Salamander 13.10, with every third suspend or so, the network is disabled and I'm unable to re-enable it. I've had to reboot to make it run again. The network menu will have ...
31
votes
3answers
20k views

What is the difference between Network Manager and 'ifconfig' 'ifup', etc?

Ubuntu seems to provide at least two network "toolsets" (for lack of a better term). I'm running into conflicts between these two. Network Manager Something which is more like the traditional ...
31
votes
3answers
18k views

bind software to different network interfaces

I have two different network interfaces, connected to 2 networks. One is an eth0 and the other one a wlan0. How can I tell a software to use only a specific interface? Basically I want Firefox to ...
30
votes
5answers
105k 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....
30
votes
7answers
1k views

What precautions should I take when exposing my desktop directly to the internet?

I've always used my Ubuntu desktop behind the security of a router with NAT, but there have been a few times when I've had to plug it directly into an active cable modem. In general, what precautions ...
30
votes
6answers
53k views

How do I renew my DHCP lease?

Short of rebooting, how can I release and renew my DHCP lease? It would be useful to know a GUI and terminal method. I'd especially like to know if there is a means to do this without requiring admin ...
30
votes
3answers
49k views

How do I setup OpenVPN so I can securely use the internet from an unsecured hotspot?

Goal: I want to be able to securely use the internet via my home PC while my notebook is connected to an open hotspot/access point. I do know that I can use a SSH tunnel/SOCKS proxy, but I don't want ...
29
votes
7answers
77k 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?
29
votes
4answers
29k views

What are the significant differences between tracepath and traceroute?

I recently read a bit of an article on HowToGeek that has me scratching my head a little. I've got fairly little experience with Linux though, so forgive me if this is entry-level: "The tracepath ...
29
votes
2answers
68k views

How to transfer files between Ubuntu and Windows?

I wanna transfer some files from this PC with Ubuntu to a PC with Windows 7 I don't care how to do it (ftp, samba or whatever) I wanna know the steps, I searched a lot but I can't find anything that ...
29
votes
3answers
216k views

How to setup static IP in Ubuntu Server 12.04?

sudo apt-get update sudo apt-get upgrade ifconfig sudo nano /etc/network/interfaces auto eth0 iface eth0 inet static address 192.168.1.150 netmask 255.255.255.0 network 192.168.2.0 broadcast 192....
28
votes
4answers
8k views

14.04 - Network manager stopped working

When I started my laptop, there was no network service, and also no network icon in the top bar. It gives an error when I start OS like "Sorry, Ubuntu 14.04 experienced an internal error". When I ...