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

link|improve this question

68% accept rate
feedback

2 Answers

up vote 5 down vote accepted

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).

link|improve this answer
Oh. Thanks. I'm using Safari on Mac OS X. And I think my Os support IPv6. What address should I put on address bar to connect to localhost? (like 127.0.0.1 in IPv4) I tried http://::1/ but it doesn't work. – Eonil Dec 14 '11 at 5:36
Ooops, sorry forgot the square brackets. Answer updated. – Paul Dec 14 '11 at 5:44
feedback

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

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).

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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