IPAddress from React book component only works w/ "on your network"


#1

so from the React book, the <IPAddress /> and <IPAddressContainer /> app only shows the IP address on the screen when I click where the mouse is in this pic:

yet the picture in the book has localhost:3000 in the address bar. Did I do something wrong, or did the author forget to say something about this? I used npm start to run the thing.


#2

There may be nothing wrong, for the HTTP Server adjusts what port it works on depending on a variety of system parameters. When you do navigate to localhost, what do you see?

Cheers,
Kirupa


#3

when I navigate to the local host, all I get are the elipses that were put in in the constructor instead of an IP address


#4

Does your browser’s Developer Tools Console display any errors?


#5

yes, in Chrome, I get this: