Article 6DFGC Ping ipv6 localhost fails "address family for hostname not supported"

Ping ipv6 localhost fails "address family for hostname not supported"

by
razor7
from LinuxQuestions.org on (#6DFGC)
Hi!

A year or so ago I tweaked my IPV6 config to disable it, or at last that's what I tough. I don't remember which commands executed or which articles I read. Currently I'm at LM Cinnamon 21.2 (Ubuntu 22.04)

Today, using a debugger for my work, it generates a web service URL like this
Quote:
"webSocketDebuggerUrl": "ws://[::1]:8081/inspector/debug?device=0&page=-1"
And the debugger software fails to connect to it, because, somehow, the debugger web service gets the IPv6 of localhost. If I try to ping localhost I get:
Quote:
ping ipv6 address Address family for hostname not supported
Trying to ping ::1 I get
Quote:
ping6: connect: Network unreachable
What can I do to get my localhost ipv6 running? I just need t be able to access ws://[::1]:8081/inspector/debug?device=0&page=-1
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments