How can I use curl with ::1 for ipv6 based loopback?

I tried a few ways but they seem to be confusing curl. root@testt:~# curl localhost:8080 <h1>Hello world!</h1> <p>Boom Bam Splat</p> root@testt:~# curl ::1:8080 curl: (3) IPv6 numerical address used in URL without brackets root@testt:~# curl [::1]:8080 curl: (3) [globbing] bad range specification in column 2 Answer Looking at the suggestions — and breakdown of common … Read more

Why is my localhost not 127.0.0.1 but ::1, and what notation is that? [duplicate]

This question already has answers here: Why is there a difference between ping “localhost” and ping “local IP address”? (6 answers) Closed 7 years ago. When I use the Ping command against my localhost (on Windows Vista), it doesn’t show up as 127.0.0.1. C:\Windows\system32>ping localhost Pinging GIGA [::1] from ::1 with 32 bytes of data: … Read more

Why is localhost IP 127.0.0.1?

I wondered what is the origin of the decision to make localhost‘s IP address 127.0.0.1. What is the “meaning” of 127? what is the “meaning” of 0.0.1? Answer 127 is the last network number in a class A network with a subnet mask of 255.0.0.0. 127.0.0.1 is the first assignable address in the subnet. 127.0.0.0 … Read more

What’s the difference between 127.0.0.1 and 0.0.0.0?

I understand that 127.0.0.1 points to localhost, and so does 0.0.0.0 (correct me if I’m wrong). So, what’s the difference between 127.0.0.1 and 0.0.0.0? Answer What’s the difference between 127.0.0.1 and 0.0.0.0? 127.0.0.1 is the loopback address (also known as localhost). 0.0.0.0 is a non-routable meta-address used to designate an invalid, unknown or non applicable … Read more