Questions tagged [ip-address]

130 questions
20
votes
1 answer

How to filter by host name in Wireshark?

Display filter in form ip.src_host eq my.host.name.com yields no matching packets, but there is traffic to and from this host. DNS name is resolved successfully, and filters using ip addresses like ip.src eq 123.210.123.210 work as expected.
Petr Gladkikh
  • 471
  • 1
  • 3
  • 10
18
votes
7 answers

Find the IP address of a newly-booted Raspberry Pi

I've attached a Raspberry Pi running Ubuntu to my home network with a cable. It is booted up and connected to the network. The Pi has no keyboard, mouse, or monitor. If I know the IP address that was assigned to the robot, they could ssh into it. It…
pitosalas
  • 637
  • 2
  • 8
  • 17
18
votes
6 answers

I got error "hostname: Name or service not known" when checking IP of hostname

I'm running Ubuntu 14.04 on my company's cloud service (my instance has elastic IP).  I want to check out the IP address of my instance I'm running by command line, but it didn't work. root@ubuntu14-graphite:~#…
The One
  • 4,662
  • 11
  • 29
  • 35
13
votes
2 answers

How can you determine the hostname associated with an IP on the network?

How can you determine the hostname associated with an IP on the network? (without configuring a reverse DNS) This was something that I thought was impossible. However I've been using Fing on my mobile. It is capable of finding every device on my…
Philip Couling
  • 17,591
  • 5
  • 42
  • 82
12
votes
2 answers

How can I resolve hostname to ip using different DNS servers?

For my task, I need to block some hostnames, but since some websites may reply with different IP addresses to different DNS queries (for example, Google DNS and any other DNS server), I'd like to resolve same hostname using different DNS servers to…
Groosha
  • 285
  • 1
  • 2
  • 9
11
votes
3 answers

Two IPs on one NIC ( network card )

I have a dedicated server with one network card in it. I however got two IP addresses. When I use the simple command sudo ip addr add 188.40.90.88 dev eth0 it fails to see it as a separate IP. I've googled along trying to find a fix, but I can't…
Sam
  • 195
  • 1
  • 2
  • 13
8
votes
3 answers

What does this mean /16 after an IP address

I came across an ip like this the other day 255.255.255.1/16 I thought the /16 referred to the number of subnetting addresses the IP could generate. However, I suspect I may be horribly wrong and felt that the Linux/Unix experts on this forum could…
lsn00b
  • 89
  • 1
  • 1
  • 3
7
votes
4 answers

why `nmap 192.168.1.97` returns less services than `nmap 127.0.0.1`?

According to https://networkengineering.stackexchange.com/a/57909/, a packet sent to 192.168.1.97 "doesn't leave the host but is treated like a packet received from the network, addressed to 192.168.1.97." So same as sending a packet to loop back…
Tim
  • 98,580
  • 191
  • 570
  • 977
7
votes
3 answers

How do I get my IP address from the command line?

I'm using Debian 8. How do I get my external IP address from a command line? I thought the below command would do the job ... myuser@myserver:~ $ /sbin/ifconfig $1 | grep "inet\|inet6" | awk -F' ' '{print $2}' | awk '{print…
Dave
  • 2,348
  • 21
  • 54
  • 84
6
votes
1 answer

Return the private IP of an EC2 instance from within the EC2 instance

What specific syntax can be used to return the private IP address of an Amazon Linux EC2 instance from the command line within that instance? So far, I have come up with the following: # Get private IP from inside the instance by filtering inside…
CodeMed
  • 5,079
  • 45
  • 100
  • 147
6
votes
2 answers

Check overlapped subnets

I want to know if there's a way to check if some subnets are (or not) overlapped with a List of IPs For example, we have this…
lendoiro
  • 81
  • 1
  • 5
4
votes
1 answer

bash: ip: command not found

I want to run for example this command : ip addr on my remote system. I do it like this : ssh username@ip ip addr but I got this error : bash: ip: command not found when I connect to remote system and then run this command it is ok, I mean it is…
fa7eme
  • 43
  • 1
  • 1
  • 6
4
votes
3 answers

Parse command arp -a for only ip

I need to parse the command arp -a to get only the ip of the device. Right now I have arp -a | awk '{print $2}' | head -1 However this gives me (192.168.1.71) and I must remove the ( ) from the output. How can this be done?
Chen Yao
  • 43
  • 3
4
votes
1 answer

How to automatically permanently ban IP addresses?

Currently I have been using iptables on a new Debian server running Asterisk. Every day I have been checking auth.log for IP addresses and manually doing iptables -A INPUT -s IPA.DRE.SS.0/24 -j DROP I was initially doing just IP addresses but many…
InterLinked
  • 175
  • 1
  • 8
4
votes
4 answers

How to remove lines containing IP address?

I have a file like: http://example.mx https://test.com http://4.3.4.4 http://dev.somedomain.com http://1.3.4.2 I want to get rid of the ones with IPs so that the result should be: http://example.mx https://test.com http://dev.somedomain.com What I…
supermario
  • 3,179
  • 5
  • 19
  • 14
1
2 3
8 9