From RFC 3986 section 3.2.2:
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 "]").
For example, the IPv4 address for you local machine is 127.0.0.1, so you can access it with the url
http://127.0.0.1/
The IPv6 equivalent is ::1
, so the url would be
http://[::1]/