question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add ip6-localhost

See original GitHub issue

Add ip6-localhost to hosts file

In Ubuntu:

127.0.0.1   localhost
# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

In Android:

127.0.0.1       localhost
::1             ip6-localhost

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
ginoledesmacommented, Dec 7, 2017

Keeping the current behavior (generate IPv4 only) and making IPv6 generation optional makes sense.

I wouldn’t necessarily say that it’s IPv4 and IPv6 are mutually exclusive — many locations might have dual deployments. That’s how I ran into this issue — the WiFi access point I connected to handed me out both an IPv4 and IPv6 address, and I wondered why I was seeing ads from known blocked sites.

I agree that IPv6 deployment is minimal compared to IPv4, and will probably be the case for some time still, but a lot of places are doing IPv6 rollouts slowly but surely (e.g. conferences offering WiFi).

2reactions
ScriptTigercommented, Dec 6, 2017

Since this topic seems to be tending, if you’re up for a bit of light reading, these articles are pretty good and address some common problems people might have, such as needing to use zone IDs with link-local IPv6 addresses in the hosts file and little known things like that. https://technet.microsoft.com/en-us/library/bb726995.aspx https://technet.microsoft.com/en-us/library/bb962069.aspx

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is IPV6 for localhost and 0.0.0.0? - Stack Overflow
IPv6 localhost. ::1 is the loopback address in IPv6. Within URLs. Within a ...
Read more >
How do I add IPv6 address into System32\drivers\etc\hosts?
There is already by default, and it works (Win 7): ::1 localhost. This ...
Read more >
Adding a host name in the /etc/hosts file - NetApp
You can add the host name and aliases of the storage system in the /etc/hosts file. You can use the setup command to...
Read more >
How do I ping localhost using IPv6? - Super User
Short answer ping6 ip6-localhost # Or the alias you have in /etc/hosts file (See below) ping6 0:0:0:0:0:0:0:1 # Similar to `ping 127.0.0.1` ...
Read more >
ipv6 entry refering to localhost in /etc/host file needs ipv4 added
There's no real answer to this question. The basic rule is that the name 'localhost' must be reserved for 127.0.0.1 on IPv4. Always....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found