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
21
votes
5 answers

Formatting IPv6 as an int in C# and storing it in SQL Server

Under IPv4 I have been parsing the string representation of IP addresses to Int32 and storing them as INT in the SQL Server. Now, with IPv6 I'm trying to find out if there's a standard or accepted way to parse the string representation of IPv6 to…
Guy
  • 65,082
  • 97
  • 254
  • 325
21
votes
1 answer

Node.js server only listening on ipv6

I am running a node.js server on port 5403. I can telent to the private ip on this port but cannot telnet to the public ip on the same port. I assume the cause of this is because node.js is only listening on ipv6. This is the result of netstat…
codeyard
  • 327
  • 1
  • 2
  • 10
21
votes
4 answers

What's the easiest to remember publicly pingable IPv6 address?

There are several well known IPv4 addresses on the Internet that people widely use for testing their internet connectivity - 4.2.2.2, 8.8.8.8, 8.8.4.4, 1.1.1.1, etc. But what about IPv6? Does anybody know any easy to remember publicly pingable IPv6…
dtoux
  • 1,754
  • 3
  • 21
  • 38
21
votes
8 answers

Geolocation with IPv6?

I'm working on an IP geolocation library that uses the first three octets of an IPv4 address to determine a user's country, city, lat, lon, etc. Works like a charm. But it doesn't handle IPv6 addresses, and I'd like it to do so. Is there any way to…
benjismith
  • 16,559
  • 9
  • 57
  • 80
20
votes
4 answers

Validate IPv4, IPv6 and hostname

I'm working on a project in .net , that can connect to different machines by an IP address that the user inputs. I'm trying to validate the inputted IP Address using a regular expression. I've searched the internet for some time now, and i cannot…
Daniel
  • 1,225
  • 2
  • 15
  • 31
20
votes
3 answers

How do you make IPV6 default in Chrome for MAC?

I've been to chrome://net-internals/#dns and enabled IPV6 but there does not seem to be an option to have the browser try the IPV6 address first, it's defaulting to IPV4. Before enabling IPV6 the default address family was: Default adress…
flxa
  • 431
  • 1
  • 5
  • 11
20
votes
4 answers

getaddrinfo and IPv6

I'm trying to understand what the getaddrinfo function returns : #include #include #include #include #include int main (int argc, char *argv[]) { struct addrinfo *res = 0 ; …
lilawood
  • 333
  • 2
  • 4
  • 10
20
votes
2 answers

REMOTE_ADDR and IPv6 in PHP

Is it safe to assume that $_SERVER['REMOTE_ADDR'] always returns a IPv4 address? Thanks!
Alix Axel
  • 151,645
  • 95
  • 393
  • 500
19
votes
4 answers

How do you determine equality between two IPv6 addresses?

I have an application that allows administrators to specify valid IP addresses from which web service requests can be made. I simply take the configured IP addresses and compare them against the incoming request. Comparing two IPv4 addresses is…
Kirk Liemohn
  • 7,733
  • 9
  • 46
  • 57
18
votes
7 answers

IPV6 address into compressed form in Java

I have used Inet6Address.getByName("2001:db8:0:0:0:0:2:1").toString() method to compress IPv6 address, and the output is 2001:db8:0:0:0:0:2:1 ,but i need 2001:db8::2:1 . , Basically the compression output should based on RFC 5952 standard , that…
Isabel Jinson
  • 8,541
  • 16
  • 59
  • 75
18
votes
2 answers

Can't reproduce (IPv6?) connection issue that App Store review team is having

I am experiencing an IPv6 problems with my iOS apps. Initially I submitted a few days before June 1st not knowing about IPv6 requirement (https://developer.apple.com/news/?id=05042016a). They were reviewed on June 1st and rejected for IPv6…
Andy
  • 1,815
  • 2
  • 22
  • 49
18
votes
2 answers

Reachability and IPv6

One of my project uses the Apple's Reachability class in order to be monitor the network state and be notified in case of changes. After reading this article about supporting IPv6 I was wondering if were to be made to this class to make it work with…
Titouan de Bailleul
  • 12,920
  • 11
  • 66
  • 121
18
votes
3 answers

Address family not supported by protocol

The following code is a socket programming sample for a TCP client. But when I run this, connect() is returned as Address family not supported by protocol. I have heard, this problem will happen if the platform does not support ipv6. But AF_INET I…
user1345414
  • 3,745
  • 9
  • 36
  • 56
18
votes
4 answers

Conversion IPv6 to long and long to IPv6

How should I perform conversion from IPv6 to long and vice versa? So far I have: public static long IPToLong(String addr) { String[] addrArray = addr.split("\\."); long num = 0; for (int i = 0; i <…
Testeross
  • 255
  • 1
  • 2
  • 9
17
votes
1 answer

Identifying the preferred IPv6 source address for an adapter

If you have a IPv6 enabled host that has more than one global-scope address, how can you programmatically identify the preferred address for bind()? Example address list: eth0 Link encap:Ethernet HWaddr 00:14:5e:bd:6d:da inet…
Steve-o
  • 12,678
  • 2
  • 41
  • 60