Questions tagged [ip]
IP or Internet Protocol. Use this tag for questions about IP addresses or configuration, or the protocol as applied to Ubuntu.
577
questions
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 ...
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'...
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).
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 ...
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 ?
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 ...
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 ...
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?
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\...
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 ...
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.
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 ...
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:...
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?
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 ...
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 ...
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" ...
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 ...
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 ...
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.
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 ...
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.
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 "...
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....
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-...
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 ...
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:
...
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....
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 ...
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 ...
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 ...
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 ...
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 ...
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?
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?
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?
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 ...
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....
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 ...
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://...
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 ...
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 ...
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 ...
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:
...
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 '...
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 ...
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.
$...
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 ...
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 ...
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
...