135

If a server has only IPv6 address without domain name, how can I connect to server from my web-browser?

168

According to RFC2732, literal IPv6 addresses should be put inside square brackets in URLs, e.g. like this:

http://[1080:0:0:0:8:800:200C:417A]/index.html

If you also need to specify a port other then 80 to access the server it has to be placed after the closing bracket:

http://[1080:0:0:0:8:800:200C:417A]:8888/index.html

Of course, you have to have end-to-end IPv6 connectivity to that host. E.g. if the server is not inside your own local network, you need to have IPv6 connectivity, either via your ISP (rare), or via some kind of IPv6 in IPv4 encapsulation (tunnel).

  • Switched to this answer for mentioning RFC. – Eonil Sep 4 '13 at 3:11
  • 3
    this doesn't work in google chrome if you use link local addresses (with the %eth0 suffix). – anarcat Dec 8 '15 at 0:56
  • does this work for a domain? – Jason Sebring Mar 17 '17 at 1:18
  • 2
    If your ISP does not support IPv6, an SSH tunnel can be used to access IPv6-only websites by connecting to the IPv4 address of a VPS that also supports IPv6: ssh -fND 1080 x.x.x.x. You can then connect to the proxy localhost:1080 in your web browser. – baptx Jun 14 at 15:26
  • 2001:470::76:0:0:0:2 ### if you want a working link – dotbit Aug 30 at 5:49
33

Put the ipv6 address into your browser address bar like you would a dns name or an IPv4 address, except enclosed in square brackets:

http://[::1]

(example with localhost)

This is supported in Chrome, Firefox, IE and probably other browsers.

Note that you need to have IPv6 working on your OS, and every device in the path to the destination (including proxy servers if you use one).

  • don't forget to start a web server before testing localhost – baptx Jun 14 at 14:43
0

If required to test locally with IPv6, put below AAA Record in address bar

[::1]

will be equivalent to write

localhost 

or below IPv4 A (Host) Record

127.0.0.1
-1

instead of dead links, people want something for real, such as this working link:

http://[2001:470::76:0:0:0:2]

which is

http://[2001:470::76:0:0:0:2]

a site telling everyone about certs and has none itself.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.