Questions tagged [ipv6]

The Internet Protocol is one of the fundamental protocols used for the Internet. IPv6 is the next generation Internet Protocol, as opposed to the currently common Internet Protocol known as IPv4.

Primarily IPv6 increases the number of available addresses to allow continued expansion of the Internet once all of the addresses are allocated. There are a number of other noticeable changes over , which are based on the lessons learned from the evolution of .

Useful resources:

2550 questions
540
votes
6 answers

Maximum length of the textual representation of an IPv6 address?

I want to store the data returned by $_SERVER["REMOTE_ADDR"] in PHP into a DB field, pretty simple task, really. The problem is that I can't find any proper information about the maximum length of the textual representation of an IPv6 address, which…
Gilles
  • 7,183
  • 3
  • 21
  • 24
491
votes
25 answers

Is there a way for non-root processes to bind to "privileged" ports on Linux?

It's very annoying to have this limitation on my development box, when there won't ever be any users other than me. I'm aware of the standard workarounds, but none of them do exactly what I want: authbind (The version in Debian testing, 1.0, only…
Jason C
  • 21,377
  • 10
  • 38
  • 33
189
votes
6 answers

How do ports work with IPv6?

Conventional IPv4 dotted quad notation separates the address from the port with a colon, as in this example of a webserver on the loopback interface: 127.0.0.1:80 but with IPv6 notation the address itself can contain colons. For example, this is…
Peter Wone
  • 17,965
  • 12
  • 82
  • 134
176
votes
5 answers

What is IPV6 for localhost and 0.0.0.0?

As we all know the IPv4 address for localhost is 127.0.0.1 (loopback address). What is the IPv6 address for localhost and for 0.0.0.0 as I need to block some ad hosts.
Killerbeans
  • 1,903
  • 2
  • 10
  • 7
133
votes
8 answers

What does "dead beef" mean?

What does the word "dead beef" mean? I read it from a interview question. It has something to do with ipv6. I figured it could be a random hex number used for examples, like "The quick brown fox jumps over the lazy dog". Is my understanding correct?…
Xi 张熹
  • 10,492
  • 18
  • 58
  • 86
128
votes
8 answers

Make docker use IPv4 for port binding

I have docker host and inside I have one container. The docker host is binding the port on IPv6 interface only, not on IPv4. This is the output tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN - tcp 0 0…
user3214546
  • 6,523
  • 13
  • 51
  • 98
127
votes
10 answers

How to get my IP address programmatically on iOS/macOS?

I would like to obtain my iPad's IP address programmatically. How can I query the networking subsystem to find out what my IPv4 (and IPv6) addresses are? PS: Can I disable IPv6 somehow?
Wilbur
  • 1,333
  • 3
  • 10
  • 5
114
votes
4 answers

Parsing IPv6 extension headers containing unknown extensions

I'm writing a very simple net filter, and getting to where I want to parse IPv6 headers to match things like ICMPv6 types, TCP/UDP port numbers, etc. So I'm reading about the IPv6 packet format in depth, and I'm kind of like... well... I sort of had…
AdamIerymenko
  • 1,299
  • 2
  • 10
  • 19
111
votes
30 answers

Regular expression that matches valid IPv6 addresses

I'm having trouble writing a regular expression that matches valid IPv6 addresses, including those in their compressed form (with :: or leading zeros omitted from each byte pair). Can someone suggest a regular expression that would fulfill the…
readonly
  • 343,444
  • 107
  • 203
  • 205
70
votes
5 answers

How to support both IPv4 and IPv6 connections

I'm currently working on a UDP socket application and I need to build in support so that IPV4 and IPV6 connections can send packets to a server. I was hoping that someone could help me out and point me in the right direction; the majority of the…
Charles
  • 2,615
  • 3
  • 29
  • 35
55
votes
2 answers

Getting MSDN PeerChannel "SecureChat" running on Windows Server 2008 R2

I can only get this SDK sample of PeerChannel SecureChat to work in the following scenarios in a basic home network: Locally among instances running on the same machine, or Among Windows 7 machines I cannot get this to work between my Windows…
Jason Kleban
  • 20,024
  • 18
  • 75
  • 125
54
votes
8 answers

Get IPv4 addresses from Dns.GetHostEntry()

I've got some code here that works great on IPv4 machines, but on our build server (an IPv6) it fails. In a nutshell: IPHostEntry ipHostEntry = Dns.GetHostEntry(string.Empty); The documentation for GetHostEntry says that passing in string.Empty…
zombat
  • 92,731
  • 24
  • 156
  • 164
51
votes
3 answers

How can I disable IPv6 stack use for IPv4 IPs on JRE?

As you can see on below screenshots, eclipse and Android SDK Manager (and other Java programs) are trying to connect to a IPv4 Internet IP via IPv6 TCP/IP stack while Proxifier (a proxy manager program, nevermind) can not support that. How I can…
Ebrahim Byagowi
  • 10,338
  • 4
  • 70
  • 81
48
votes
5 answers

Configure git to use IPv4 instead of IPv6 by default

Checking the environment variables and also HTTP configuration options does not reveal something. Is there a way to do this?
nobeh
  • 9,784
  • 10
  • 49
  • 66
45
votes
5 answers

Getting `Can't assign requested address` java.net.SocketException using Ehcache multicast

Getting java.net.SocketException when trying to start a multicast provider: 2013-09-11 11:45:44,204 [main] ERROR net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider: Error starting heartbeat. Error was: Can't assign requested…
eebbesen
  • 5,070
  • 8
  • 48
  • 70
1
2 3
99 100