Questions tagged [ip]

IP - Internet Protocol, the most commonly-used set of rules for dispatching data across a large computer network.

Filter by
Sorted by
Tagged with
313 votes
8 answers
788k views

How to bind MySQL server to more than one IP address?

Is there a secret way to bind MySQL to more than one IP address? As far as I can see the bind-address parameter in the my.cnf does not support more than one IP and you can't have it more than once.
BlaM's user avatar
  • 3,936
310 votes
14 answers
1.0m views

What's the command-line utility in Windows to do a reverse DNS look-up?

Is there a built-in command line tool that will do reverse DNS look-ups in Windows? I.e., something like <toolname> w.x.y.z => mycomputername I've tried: nslookup: seems to be forward look-...
alastairs's user avatar
  • 3,235
286 votes
5 answers
380k views

What's the difference between IP address 0.0.0.0 and 127.0.0.1?

I know that 127.0.0.1 ~ 127.255.255.254 are the loopback IP addresses for most modern operating systems, and these IP addresses can be used to refer to our own computer. But what's 0.0.0.0? It seems ...
Jichao's user avatar
  • 3,057
234 votes
3 answers
242k views

What is the difference between Unix sockets and TCP/IP sockets?

It's from this answer: https://stackoverflow.com/questions/2482411/is-this-pdo-bug-fixed-now/2482424#2482424 When the host is "localhost", MySQL Unix clients use a Unix socket, AKA Unix ...
apache's user avatar
  • 3,347
125 votes
5 answers
227k views

What is this IP address: 169.254.169.254?

I have always noticed an IP something "169.254.x.x" in my routing table even when I am not connected to any network in my Windows operating system. In Linux, when I list my routing table. $ ...
pradeepchhetri's user avatar
122 votes
4 answers
230k views

What is the difference between unicast, anycast, broadcast and multicast traffic?

I have never had the privilege of working in an environment that required complicated routing or if it did require it, it was handled upstream of me. I've always used very simple static routing ...
user avatar
91 votes
6 answers
767k views

How to determine the hostname from an IP address in a Windows network?

My LAN has 50 Windows hosts. At the Windows command line I try ping to get the IP address of a running Windows machine. The question is how to get hostname of a specific IP address in the same ...
billyduc's user avatar
  • 1,627
91 votes
8 answers
94k views

What is "anycast" and how is it helpful?

I'd never heard of anycast until a few seconds ago when I read "What are some cool or useful server/networking tricks?". The wikipedia "Anycast" article on it is quite formal and doesn't really evoke ...
username's user avatar
  • 4,785
81 votes
6 answers
160k views

How to scan local network for SSH-able computers?

I am often on one computer in my house and I would like to SSH to another one, but often don't know the IP address of the one I want to connect to. Is there a way, from the command line, to scan the ...
Andrew's user avatar
  • 3,573
74 votes
3 answers
152k views

Block range of IP Addresses

I am getting bombarded with attempted hacks from China all with similar IPs. How would I block the IP range with something like 116.10.191.* etc. I am running Ubuntu Server 13.10. The current line ...
Stephen Cioffi's user avatar
70 votes
3 answers
62k views

What does [::] mean as an ip address? Bracket colon colon bracket

When I run netstat there are some entries such as TCP [::]:8010 computername LISTENING What does that mean? It is impossible to search for...
carpat's user avatar
  • 1,065
66 votes
5 answers
105k views

associate name with ip for ssh?

Let's say I just have an ip address for a server and I don't have a domain with it (it's just a database server, so it doesn't need a domain). I don't want to have to remember the ip address every ...
Matthew's user avatar
  • 1,927
63 votes
14 answers
48k views

Why would you use IPv6 internally?

Of course, I realize the need to go to IPv6 out on the open Internet since we are running out of addresses, but I really don't understand why there is any need to use it on an internal network. I have ...
KCotreau's user avatar
  • 3,401
55 votes
6 answers
32k views

Debugger for Iptables

I'm looking for an easy way to follow a packet through the iptables rules. This is not so much about logging, because I don't want to log all traffic (and I only want to have LOG targets for very few ...
Chris Lercher's user avatar
50 votes
5 answers
9k views

Why is tampering with the TTL of IP dangerous?

I've been reading the iptables man-page (light bedtime reading) and i came across the 'TTL' target, but it warns: Setting or incrementing the TTL field can potentially be very dangerous and ...
Rob M's user avatar
  • 1,492
46 votes
5 answers
98k views

Why can't I reach my Amazon EC2 instance via its Elastic IP address?

The server works fine via the Amazon assigned DNS entry, but I cannot reach it (using a browser) via the Elastic IP address Amazon assigned the box. Ping does not work either. I am trying to confirm ...
Guido Anselmi's user avatar
45 votes
13 answers
426k views

How to get a list of all IP addresses (and ideally device names) on a LAN?

Our network gave an error that there was an IP address conflict and I'd like to find what all the device IP addresses are. (I've also had need of that before). (update/clarification:I'm looking for a ...
Clay Nichols's user avatar
  • 1,513
42 votes
7 answers
102k views

Can a single network card have 2 IP addresses?

Are network cards and IP addresses a one-one map?
kernel's user avatar
  • 8,671
41 votes
8 answers
90k views

Force local IP traffic to an external interface

I have a machine with several interfaces that I can configure as I want, for instance: eth1: 192.168.1.1 eth2: 192.168.2.2 I would like to forward all the traffic sent to one of these local ...
calandoa's user avatar
  • 1,305
41 votes
5 answers
141k views

Why do we ping the IP 4.2.2.2 to test connectivity?

For as long as I can remember, I've always used the IP 4.2.2.2 when testing network connectivity using ping. What is significant about this IP, and when did this practice start?
gnavi's user avatar
  • 513
39 votes
9 answers
29k views

Why does typing an IP address instead of the corresponding domain name not show the website? [closed]

> host example.com example.com has address 93.184.216.34 example.com has IPv6 address 2606:2800:220:1:248:1893:25c8:1946 I type 93.184.216.34 instead of http://example.com in Chrome. It doesn't ...
user avatar
39 votes
4 answers
312k views

How do I find out what my IP Address of my MySQL host is?

I have a free domain running at x10hosting (x10.bz), and I want to find out the IP Address of my MySQL host for it, so I can contact the MySQL database from another host. I've already added that host ...
Deniz Zoeteman's user avatar
39 votes
3 answers
125k views

Nginx - How to redirect users with certain IP to special page

I run quite a big image gallery and there are 5 visitors that create an enormous amount of traffic by downloading the whole site every day using webcopiers. Those visitors have static IPs as it seems. ...
Alex's user avatar
  • 391
39 votes
5 answers
365k views

How to route different traffic thru different network interfaces (in Windows)

I've searched for details on how to do this but I've been unsuccessful - I wondered if someone could offer up some advice. So, let's say I have 2 network cards (LAN and 3G in my instance), both ...
user avatar
38 votes
5 answers
19k views

Users with Google's IP address. How is it possible?

I have a spanish website and I do not allow people from non-european countries to register and to login. Some time ago I started to receive messages from users who can not login. When I ask for their ...
user1406271's user avatar
  • 1,091
38 votes
6 answers
121k views

How to see incoming IPs in Linux?

I am wondering what is the command/utility to have a real-time view of incoming IPs to my server, ideally along with the port and connected.
alfish's user avatar
  • 3,157
36 votes
6 answers
15k views

Is it valid to have part of an IPv4 address set to zero?

I am working on a change in a Java EE application that would authenticate based on the user's IP address using ServletRequest.getRemoteAddr. We store IP address ranges (FROM_IP and TO_IP) in a ...
Ritesh's user avatar
  • 471
36 votes
7 answers
19k views

Is 0.1.2.3 a valid IP address?

Are IP addresses with all zeroes in the first octet valid? For example, can 0.1.2.0/24 be a valid subnet, with network address 0.1.2.0, broadcast address 0.1.2.255 and an usable address range from 0....
Massimo's user avatar
  • 71.3k
35 votes
7 answers
166k views

Is it possible for two hostnames share the same IP address?

Can anyone explain whether it is possible for two hostnames to share the same IP address? And what about if one hostname represents more than one IP address, is that possible too? Why?
jean's user avatar
  • 385
35 votes
6 answers
210k views

Why "Nexthop has invalid gateway" when it seems to be defined?

I have my own wireless router to which a remote VPN client, 10.7.0.6, is connected. I want traffic from one of the wireless clients to go through it, but I'm getting "Nexthop has invalid gateway". (I'...
Adrian May's user avatar
35 votes
4 answers
52k views

Where does Amazon publish the range of IP addresses used for EC2 instances by region?

How can I keep updated of changes to the range of IP addresses that Amazon will use for EC2 instances. I want to add a range of IPs to my firewall settings to allow access to my 'ground based' mysql ...
undefined's user avatar
  • 654
35 votes
5 answers
240k views

Remove IP with ip command in linux

If I add two IPs like this: ip addr add 1.1.1.1/24 dev eth2 ip addr add 1.1.1.2/24 dev eth2 and then I try to delete one of like this: ip addr del 1.1.1.2/24 dev eth2 BOTH IPs will be deleted and ...
Hamed JML's user avatar
  • 483
34 votes
8 answers
38k views

What is the network address (x.x.x.0) used for? [duplicate]

It appears to be common practice to not use the first address in a subnet, that is the IP 192.168.0.0/24, or a more exotic example would be 172.20.20.64/29. The ipcalc tool I frequently use follows ...
Shtééf's user avatar
  • 1,235
34 votes
2 answers
50k views

What does ::1 mean?

What does ::1 mean? I'm trying to find out my IP and the result is ::1.
user45338's user avatar
  • 451
33 votes
7 answers
49k views

How many computers can have the same public IP?

I've got a list of hundreds of page requests from the same IP and I need to know if these could be requests by different computers.
Emanuil Rusev's user avatar
32 votes
4 answers
78k views

Can the IP address for an HTTP request be spoofed?

On a website I am building, I plan to log the IP addresses of submissions, just in case it's necessary. I don't mind proxies, but outright spoofing your IP address would defeat the purpose. To ...
TND's user avatar
  • 435
32 votes
2 answers
5k views

Why does this URL with excessive preceding dots resolve to an IP address?

http://.................1168951531 Which, when put into chrome, previews to the URL http://69.172.200.235/, which redirects (by external server response code 3XX) to www.test.com, but that is outside ...
Shadowjonathan's user avatar
32 votes
4 answers
53k views

What are the differences between Floating IPs and Virtual IPs?

This might be a pedestrian question but what is the difference between a "Floating IP" address and a "Virtual IP" address? Are they synonyms?
Marlon's user avatar
  • 535
31 votes
14 answers
89k views

How can I display the IP address of an interface?

If I want to display the IP address that is assigned to eth1, how can I do this in Bash?
user47556's user avatar
  • 529
31 votes
2 answers
7k views

Under what circumstances is TCP-over-TCP performing significantly worse than TCP alone (2014)?

Many admins keep perpetuating - on ServerFault and elsewhere - how bad of an idea TCP-over-TCP is, e.g. in VPNs. That even the slightest packet loss will make one suffer from at least severe ...
Nils Toedtmann's user avatar
29 votes
9 answers
215k views

Any way to find unused IP addresses on my network?

How can I locate unused IP addresses on my network? The DHCP server keeps assigning the same address and I need a different IP address to test my application with. The software would need to run on ...
jasonh's user avatar
  • 357
28 votes
9 answers
16k views

How do I use Linux to find unused IP addresses on my network?

I've got access to two computers (A and B) on a network. Both have got a static IP address with a subnet mask of 255.255.255.128 (I checked that a DHCP server was not being used). I want to configure ...
Vishal Sharma's user avatar
28 votes
5 answers
60k views

Static IP vs DHCP Reservation

When setting up a network in need of static IP addresses I've come across at least two ways of doing so. A: Router/Gateway In particular, on my Buffalo router, under DHCP Server, there is the option ...
Shaz's user avatar
  • 409
28 votes
7 answers
80k views

How to check IPv6 address via command line?

How do I check the IPv6 address via command line? For IPv4 I simply use: curl ipinfo.io/ip This doesn't work for IPv6.
user3200534's user avatar
28 votes
3 answers
21k views

How can I send visitors to the closest server using DNS?

Is there a way to localize dns entries? Meaning, that users from asia resolve mydomain.com to another ip than users from usa or europe. This would be helpful to give the users the server nearby. DNS ...
kcode's user avatar
  • 1,835
27 votes
3 answers
18k views

Is there an "official" name to the 0.0.0.0 IP address?

As 127.0.0.1 is known as the loopback address, is there a shorter term to refer to 0.0.0.0 other than "the IP address who means all IP address on local machine"?
Willian Mitsuda's user avatar
27 votes
3 answers
17k views

What is the difference between 0.0.0.0/0 and 0.0.0.0/1?

In the history, I mostly used 0.0.0.0/0 for "match every IP address". Recently, I saw a 0.0.0.0/1 subnet filter. What is the difference between 0.0.0.0/0 and 0.0.0.0/1 and what's the ...
Arakis's user avatar
  • 391
27 votes
5 answers
164k views

How can I get the IP address of a remote desktop client? And how can I trigger a shell command upon RDP connect?

Is there a way to determine the IP address of a remote desktop client using PowerShell (or some other method) on the server? (Windows Server 2008 R2 x64 is what I'm using) EDIT: I find that I can ...
chaz's user avatar
  • 501
26 votes
6 answers
38k views

IPv4 CIDR Ranges for Everything except RFC1918

I'm looking for a list of CIDR blocks for "The Internet", i.e. everything from 0.0.0.0 to 223.255.255.255, excluding RFC1918 address space of 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 (yes, I know ...
Jed Daniels's user avatar
  • 7,382
26 votes
4 answers
42k views

ip address scope parameter

In Linux, the command ip address add [...] has a scope argument. The man page says that the scope is "the scope of the area where this address is valid". Follows the list of legal scopes: global ...
rolaf's user avatar
  • 578

1
2 3 4 5
57