Skip to main content

Questions tagged [ip]

IP or Internet Protocol. Use this tag for questions about IP addresses or configuration, or the protocol as applied to Ubuntu.

Filter by
Sorted by
Tagged with
62 votes
9 answers
562k views

How do I set a static IP in Ubuntu?

I am a new with Linux, having years experience with Windows servers/desktops and am having issues setting a static IP. I am using a method used for previous versions of Ubuntu, which doesn't seem to ...
TeeStar's user avatar
  • 723
47 votes
11 answers
173k views

How to setup a static IP on Ubuntu Server 18.04

I've seen some people saying the file to set static ip is still /etc/network/interfaces And I've seen other people saying that in 18.04 it's now on /etc/netplan (which people seem unhappy about) I'...
final20's user avatar
  • 471
41 votes
6 answers
99k views

How to show (just) the IP address of my router?

What command can I run to get just the IP address of my router? With this command I should have only IP of my router and not, for example, the whole routing table (as when I run route -n).
kaio's user avatar
  • 647
39 votes
5 answers
440k views

What is the equivalent terminal command to ipconfig /all?

In windows I can use ipconfig /all and this displays all the info about my connection. In terminal using ifconfig does not and only supplies limited info. I can use network manager, but it would be ...
pst007x's user avatar
  • 8,112
38 votes
19 answers
124k views

How to display IP address of eth0 interface using a shell script?

How can I display the IP address shown on eth0 using a script ?
user43389's user avatar
  • 643
33 votes
3 answers
85k views

How to ssh into a server running on a home network, behind a router?

Okay, so I have a PC in my home network, running Ubuntu on a VM with openssh server installed. How can I remotely access it from another computer outside the home network, using the internet? What ...
Hugo Lobo's user avatar
  • 375
28 votes
3 answers
19k views

Public IP Address for LXC container

Ok, so I want to know how to do networking on LXC containers. Not just the sort of vague information you get from the other websites, but a true beginner's guide to making them work.. Since most ...
user132151's user avatar
24 votes
5 answers
60k views

How to use the terminal to change the IP address provided by Tor?

I have the Tor service, and I want to use the terminal to change the IP address which Tor gives me. In other words: How do I request a new IP address from Tor on the command line?
Austin's user avatar
  • 425
24 votes
2 answers
131k views

How to change the default TTL of TCP/IP packets?

I need to change the default TTL of TCP/IP packets sent from my Ubuntu computer. I found the solution for Windows: To make reg-file: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\...
kostiamol's user avatar
  • 353
23 votes
8 answers
91k views

How do I get IP of installed network printer

I have installed a network printer in my Ubuntu 14.04 machine by using system-config-printer. This GUI program offers a "Find network printer" function, that explores the local network. It returns a ...
kebs's user avatar
  • 592
16 votes
7 answers
161k views

ping multiple IP's using bash?

I have 10 IP numbers which I have to ping daily for checking , How I can do that by using BASH script. So that I can automate that task by using cron. I want BASH script only. Thank you.
Raja G's user avatar
  • 103k
16 votes
3 answers
93k views

I need to reset my computer's ip address to dhcp from static

I have been running a file server on Ubuntu for a couple of years now. Recently I had to take the network down. When I brought it back up, my server lost its ip address from the router. I can't ...
Randy Wells's user avatar
14 votes
5 answers
131k views

eth0 NO-CARRIER, ifconfig shows no IP address

I left Ubuntu and came back after a while so I don't remember much. Now I'm trying to get my IP address. All I'm getting from running ifconfig is eth0 Link encap:Ethernet HWaddr 3c:97:0e:11:22:...
MasterPorky's user avatar
12 votes
2 answers
14k views

How to find the ASN of an IP using "dig" command?

How do I find what autonomous system number or name an IP address belongs to? Could I find it using Ubuntu's dig command?
sr1's user avatar
  • 135
12 votes
6 answers
13k views

How to control an Ubuntu PC from another Ubuntu PC over Internet, using mobile broadband connections?

There are two Ubuntu PCs called A and B. A and B are connected to the Internet using two separated Internet connections. (In my case, two mobile broadband connections ppp0 x2 ) Each connection has a ...
Naveen's user avatar
  • 9,415
12 votes
2 answers
34k views

Port listening on localhost:8000 but not on ip:8000

Hello I'm running a web application on port 8000. When I access it from the host server localhost:8000 it responds ok, 127.0.0.1:8000 also works, but 192.168.1.7:8000 does not work. 192.168.1.7 is the ...
Marionette's user avatar
11 votes
1 answer
36k views

Change network mac address using "ip" command

Usually I would be able to change my wifi mac address with the ifconfig command like : ifconfig <iface> hw ether XX:XX:XX:XX:XX:XX Ubuntu have however deprecated ifconfig in behalf of the "ip" ...
kimusan's user avatar
  • 261
11 votes
1 answer
50k views

How can I setup an Internal Network with Virtualbox? (Ubuntu 14.04)

Hi I've been trying to setup an Internal Network with two Ubuntu 14.04 virtual machines. But I've been unsuccessful so far. They both have the Internal Network adapters with the same network name, now ...
Riccardo's user avatar
  • 481
11 votes
2 answers
24k views

Redirect an external IP to localhost?

Is it possible to redirect all calls to an external IP on internet, to localhost (without use of hosts)? I have an old application and I don't have the source code and this application try to connect ...
danilo's user avatar
  • 1,455
10 votes
8 answers
86k views

How do I know my IP address? [duplicate]

How can I see my IP address on Ubuntu? I used ifconfig eth0 but it only displays HWaddr and I don't see where the IP address is.
Hdavu Wind's user avatar
10 votes
2 answers
4k views

What does "echo ipv4 >> ~/.curlrc" do?

I was facing some issue today when trying to install composer with the below command: curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer It was ...
djmzfKnm's user avatar
  • 445
10 votes
2 answers
2k views

Is there a way to constantly show my external IP address in the top unity bar?

So the idea is to have it in the top right of the screen at all times. Thanks.
Force Hero's user avatar
10 votes
2 answers
21k views

Install Network Printer Manually (Router : TP-Link TL-WR842ND)

Router Model No.: TL-WR842ND After reading this article, I carry on the installation but it does not work. This is the properties page: I have attempted to print test page but the status shows me "...
Casper's user avatar
  • 3,008
9 votes
4 answers
27k views

ip addr show is showing me two IP address on one interface

I am seeing two IP address on a single interface in a weird way. This is my output of ifconfig -a eth0 Link encap:Ethernet HWaddr b8:27:eb:26:b1:c8 inet addr:10.0.0.22 Bcast:10.255....
The Prenx's user avatar
  • 355
8 votes
4 answers
18k views

How to check a bulk of ip for reverse dns?

Is there a way to check to reverse DNS check for loads of IPs, I have a list of IP I want to check? I know you're are able to do these individually: host <ip-address> and dig -x <ip-...
Yen Deng's user avatar
8 votes
2 answers
8k views

What are the possible threats if internal IP address is publicly revealed?

In many cases, people do not take enough care to remove their IP addresses from some output before posting it to help forums and Q&A sites like askubuntu. Considering one's IP address is revealed ...
Registered User's user avatar
8 votes
4 answers
16k views

How can I find the IP address of my router?

I have read 4-5 articles about it they all tell almost same steps to reset a password of my router. They tend to start with an instruction along the following lines at which I'm stuck already: ...
Deepesh Meena's user avatar
7 votes
4 answers
27k views

Get current ssh session's originating IP without being superuser

I am trying to find out the current ssh session's originating IP address. I found the following to be useful, but it requires sudo: $ sudo netstat -tapen | grep ssh | awk '{ print $5}' | sed '/0.0.0....
Tfb9's user avatar
  • 681
7 votes
1 answer
32k views

Whitelist IPs for ufw

I have set some rules in ufw to rate limit connections, as such: -A ufw-user-input -p tcp --dport 25 -m state --state NEW -m recent --set -A ufw-user-input -p tcp --dport 25 -m state --state NEW -m ...
Kohjah Breese's user avatar
7 votes
1 answer
54k views

Ifconfig does not show my IP [closed]

When i'm putting the code on: ifconfig ifconfig results in a terminal shows: eth0 Link encap:Ethernet HWaddr: f8:a9:63:64:3f:1c UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets: 0 errors:0 ...
Levidirraquio's user avatar
7 votes
3 answers
33k views

pptpd VPN: No internet access after connecting

I've followed the instructions in this tutorial to set up a vpn server, so that I can connect to that and surf the internet virtually from another location. So far from windows, I can connect to it ...
Transcendent's user avatar
7 votes
1 answer
7k views

USB/IP Kernel modules are missing.

I wish to utilize the USB/IP project for school project, but I am having trouble starting the host. We are attempting to send signals from accessibility devices for children with extreme motor ...
Tyler Berezowsky's user avatar
7 votes
3 answers
10k views

Which process is accessing which IPs?

After installing Conky and listing all my inbound and outbound connections I start to wonder what's actually happening and what and why things are happening. I'm getting a bit suspicious. How can I ...
Qohelet's user avatar
  • 699
7 votes
2 answers
9k views

Where in System Settings do I set a static IP?

I can't find where you can set a static IP in the network settings. Anywhere top-level?
meika loofs samorzewski's user avatar
7 votes
2 answers
18k views

Get IP Address of Machine from Hostname or Mac-address

Is that possible to get the IP address of my machine from the hostname or the machine's own mac address? If yes, how? If not, could you suggest an alternative way?
Fahadkalis's user avatar
7 votes
4 answers
24k views

How can I hide or show a different IP to a website?

I'd like to watch BBC Iplayer...but it only works in the UK. I am currently living in Spain. Is there a way to hide my ID and make the bbc website believe that I have a UK IP or something?
Elysium's user avatar
  • 11k
7 votes
1 answer
8k views

Access wired network camera(s) through a switch without disconnecting from wireless internet

Here is an image of the network I'm setting up: This network sort of works when "Computer" is running OS X; I can access "Network camera" (an Axis M1011) at its default address 192.168.0.90 and set a ...
mablem8's user avatar
  • 491
6 votes
3 answers
44k views

MySQL istallation problem on Ubuntu 16.04 (my.cnf public ip problem)

I follow these instructions to install mysql in Ubuntu 14.04 and it works great. But I make a clean installation of Ubuntu 16.04 and make the same steps to install MySQL and I have problems. The my....
villanuevaquelin's user avatar
6 votes
2 answers
47k views

How to connect to a certain port on SSH [duplicate]

So, I am setting up an ssh server. I have installed the ssh-server program on my server. However, I didn't want to connect to it through port 22, because reasons, so I set the server to listen through ...
user avatar
6 votes
4 answers
5k views

is it possible to alias a port number?

I want to run a service on a custom port (e.g. jenkins on 8080) and I prefer to access it via browser with a name I can remember, e.g. http://localhost:jenkins which will be an alias for http://...
CIsForCookies's user avatar
6 votes
4 answers
19k views

How to control IP ranges of Network Manager's hotspots?

A server has two WiFi interfaces, both configured via Network Manager to be hotspots. Connected clients get IPs in ranges 10.42.0.0/24 and 10.42.1.0/24 (AFAICS via dnsmasq invoked by NM). I need to ...
David Radu's user avatar
6 votes
3 answers
28k views

How to get internal and external IP addresses

I recently deployed a droplet on Vultr and I need to find the external and internal IP addresses. I have just one IP (which I presume to be the external IP or not). How and/or where do I locate the ...
donald's user avatar
  • 91
6 votes
2 answers
16k views

'ip rule flush' breaks all connectivity

I'm configuring some network stuff, and every time I try something the connection breaks. Thinking that I must be configuring something incorrectly to break all connections, I did a bit of ...
user avatar
6 votes
1 answer
3k views

Malformed Address '10.10.21.08/24', must be X.X.X.X/NN or

I am trying to set a static IP for my ubuntu server by creating a yaml file on /etc/netplan/ as follows: network: version: 2 renderer: networkd ethernets: enp0s3: ...
codemonkey's user avatar
6 votes
2 answers
63k views

How to find ip address for the apache2 server on ubuntu?

I have downloaded ubuntu on virtualbox , and I installed apache2 on it ,i did configured the server and it works on "localhost" ,the problem is that i need the ip address of the server ,the command '...
Areej Qadomi's user avatar
6 votes
2 answers
35k views

Ethernet connection not working after installing Ubuntu 14.04 LTS

EDIT: PROBLEM IS BACK.. I cant figure out a permanent and reliable way around the bug (have managed the bug to go away 2 times) my files keep duplicating themselves with a ~ after their name, so if I ...
Julian Uribe's user avatar
6 votes
1 answer
17k views

How to establish IP connection for WWAN on 18.04

How do I establish and IP connection to the WWAN of a Sierra Wireless MC7354? I have a system with a Sierra Wireless MC7354 modem running Ubuntu 18.04. ModemManager can see and control the modem. $...
Bill Door's user avatar
6 votes
1 answer
6k views

Apply static IP address change in /etc/network/interfaces in Ubuntu 16.04

TL;DR: In Ubuntu 14.04, If you change a static IP address in /etc/network/interfaces and apply the changes with ifdown and then ifup command everything works fine. But this sequence is not working in ...
Mohammad's user avatar
  • 815
5 votes
3 answers
30k views

How do i make ubuntu request a specific ip address from a dhcp server?

So here's the deal. My router assigns ip addresses starting from 192.168.0.50. I have a couple of computers running ubuntu which i want the router to assign 192.168.0.50 and 192.168.0.51 every time ...
sayantankhan's user avatar
  • 1,691
5 votes
1 answer
16k views

NetPlan Static IP address not acceptiing

Trying to setup Static IP and it will not work. IP address 192.168.100.40 pre 17.10 and netplan config as follows auto ens160 iface ens160 inet static address 192.168.100.45 netmask 255.255.252.0 ...
Damien Graves's user avatar

1
2 3 4 5
12