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.
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?
That seems really odd. The request should only be made once every time you refresh the browser (or have the hot reload functionality reload for you). Does the error keep happening even if you try again after a few minutes?
I am having the same problem, but just from localhost. I happen to have tried this in a virtual machine and checked from the host system as well using the IP my VM has in the shared network, and with that the code works. My guess is that somehow the sender of the request to ipinfo.io gets to be “localhost” if you use the app as probably most people do when just trying out, and “localhost” most probably has way more than 1000 requests/month to them (see https://ipinfo.io/pricing) and therefor we get blocked.
The only risk with using my token is that there is a slight chance that many of you might be using it daily and that the request limit might get reached