I can access my website using my IPv4 address but not my IPv6 address. Why?

L Fitz

I exposed my personal web server to the outside world by opening port 80 for incoming on my firewalls and doing the proper port forwarding. Then I went to whatismyipaddress.com to get my outside IP address to test in Internet Explorer. Using the IP address whatismyipaddress.com gave me (IPv6 it seems) in the IE address text box resulted in IE doing a Bing search with the address. I tried the address in Firefox with address bar search turned off and Firefox gave me "The address isn't valid". I spent lots of time making sure my firewall and port forwarding settings were right, which they were. No matter what I tried, I couldn't get to my web server using that address. Then I went to canyouseeme.org which reported my IP address as a IPv4 address. I was surprised. I thought that IPv4 was no longer in use on the internet. I tried that address in the browser and I immediately got to my website.

Why does my IPv6 address as reported by whatismyipaddress.com not work in either browser when the IPv4 does in both? I thought IPv4 was history on the internet.

td512

The reason your external IPv6 IP (the one that looks something like like XXXX:XXXX:XXXX::) doesn't work is because of the way IPv6 works.

Take this address for example: 2607:5600:52c:1::. This address is globally routable, and in fact, that address belongs to me.


Now We have an IPv6 address, and we want to connect on, say... port 1000.

The URIs we are used to seeing are these: <protocol>://<host>[:<port>]/[<path>][#<hash>] which means that for an IPv6 site, we would expect to use http://2607:5600:52c:1::/foo#bar. This is where it gets interesting.

We could always do 2607:5600:52c:1::1000 but in reality that would be transparently translated to 2607:5600:052c:0000:0000:0000:1000 which is a problem, since that means no port. This is where RFC3986 comes in to play. You want section 3.2.2: Host

A host identified by an Internet Protocol literal address, version 6 [RFC3513] or later, is distinguished by enclosing the IP literal within square brackets ("[" and "]"). This is the only place where square bracket characters are allowed in the URI syntax. In anticipation of future, as-yet-undefined IP literal address formats, an implementation may use an optional version flag to indicate such a format explicitly rather than rely on heuristic determination.


Ok. You've told me about why, so how do I fix it?

Simple. According to RFC3986 you need to use this notation: [IPv6-ADDRESS] which means in our example, you need to use this: http://[2607:5600:52c:1::] which will work. This also means we can connect to port 1000 by using [2607:5600:52c:1::]:1000

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Can I reach my ipv6 website via ipv4?

From Dev

Is it possible to change my IPv4 address?

From Dev

Will I be able to register my own IPv6 address as an individual?

From Dev

I get an IPv6 address from my ISP but can't use any IPv6 services

From Dev

how can i extract my ipv4 mac address with tcpdump and sed

From Dev

How to map my ipv4 address to external address in iptables

From Dev

How to map my ipv4 address to external address in iptables

From Dev

Allocate an IPv6 address to my MAC address

From Dev

What is the difference between 127.0.0.1 and my assigned IPv4 address?

From Dev

Routing traffic to my ipv4 routes except 0.0.0.0 address?

From Dev

Do I still need an ipv4 address? Can I just use an ipv6?

From Dev

Why do I have an IPv4 and IPv6 address at the same time?

From Dev

Why do I not get to the same website when using this IPv4 address instead of the url?

From Dev

How do I find the IPv4 address of a computer on my Macintosh Wi-Fi network?

From Dev

How to avoid exposing my MAC address when using IPv6?

From Dev

Back to My Mac registers services using loopback interface IPv6 address

From Dev

Why does lsof indicate my IPv4 socket is IPv6?

From Dev

Why can't I change my MAC address to this address?

From Dev

Can a client with a public ipv4 address communicate with a server with a public ipv6 address?

From Dev

How do I manually transform an IPv4 address into an IPv6 address?

From Dev

How do I manually transform an IPv4 address into an IPv6 address?

From Dev

Can a website see my internal IP Address?

From Dev

Retrieve IPv6 address of website using terminal

From Dev

Why do I need to renew my IP address every time I start my computer before I can get internet access?

From Dev

Why do the interfaces show ipv6 address along with ipv4

From Dev

Why am I not able to access the internet even though IPv4 address has been allotted by ISP?

From Dev

Why am I not able to access the internet even though IPv4 address has been allotted by ISP?

From Dev

Determine Ipv6 address of another machine when I know its ipv4

From Dev

Calculating IP Address Long Form Number for IPv6 Compared to IPv4 Using PHP

Related Related

  1. 1

    Can I reach my ipv6 website via ipv4?

  2. 2

    Is it possible to change my IPv4 address?

  3. 3

    Will I be able to register my own IPv6 address as an individual?

  4. 4

    I get an IPv6 address from my ISP but can't use any IPv6 services

  5. 5

    how can i extract my ipv4 mac address with tcpdump and sed

  6. 6

    How to map my ipv4 address to external address in iptables

  7. 7

    How to map my ipv4 address to external address in iptables

  8. 8

    Allocate an IPv6 address to my MAC address

  9. 9

    What is the difference between 127.0.0.1 and my assigned IPv4 address?

  10. 10

    Routing traffic to my ipv4 routes except 0.0.0.0 address?

  11. 11

    Do I still need an ipv4 address? Can I just use an ipv6?

  12. 12

    Why do I have an IPv4 and IPv6 address at the same time?

  13. 13

    Why do I not get to the same website when using this IPv4 address instead of the url?

  14. 14

    How do I find the IPv4 address of a computer on my Macintosh Wi-Fi network?

  15. 15

    How to avoid exposing my MAC address when using IPv6?

  16. 16

    Back to My Mac registers services using loopback interface IPv6 address

  17. 17

    Why does lsof indicate my IPv4 socket is IPv6?

  18. 18

    Why can't I change my MAC address to this address?

  19. 19

    Can a client with a public ipv4 address communicate with a server with a public ipv6 address?

  20. 20

    How do I manually transform an IPv4 address into an IPv6 address?

  21. 21

    How do I manually transform an IPv4 address into an IPv6 address?

  22. 22

    Can a website see my internal IP Address?

  23. 23

    Retrieve IPv6 address of website using terminal

  24. 24

    Why do I need to renew my IP address every time I start my computer before I can get internet access?

  25. 25

    Why do the interfaces show ipv6 address along with ipv4

  26. 26

    Why am I not able to access the internet even though IPv4 address has been allotted by ISP?

  27. 27

    Why am I not able to access the internet even though IPv4 address has been allotted by ISP?

  28. 28

    Determine Ipv6 address of another machine when I know its ipv4

  29. 29

    Calculating IP Address Long Form Number for IPv6 Compared to IPv4 Using PHP

HotTag

Archive