What means?

I wanted to register the ip of my node.js server on the console, so I added:

console.log( server.address().address ) 

to my server code. I got this in response:

 :: 

Does this mean that my ip server is not installed? And if so, how can I install it?

EDIT 1; Here is the problem guys, when I compile my server file using Node, I get the following: enter image description here

When I wanted to see what my application looks like in a browser, I could not open it, although I tried all this:

I get nothing. That is why I asked how I can find out which IP is working.

+6
source share
2 answers

:: equivalent to IPv6 address 0:0:0:0:0:0:0:0

as indicated by @nwellnhof in this comment

Learn more about IPv6 here.

+8
source

:: in itself is equivalent to the "unspecified" IPv6 address 0:0:0:0:0:0:0:0 .

In fact, any occurrence of :: in an IPv6 address indicates a string replacement of 0-digit segments; i.e. fe80::101d is short for fe80:0:0:0:0:0:0:101d .

+5
source

Source: https://habr.com/ru/post/986782/


All Articles