is ip address on remote machine the same as localhost on local machine?
I have a Go program (see this gist https://gist.github.com/42a45b3926e733ef7b34) that when I run on my local machine starts a server and handles two routes localhost:8080 and localhost:8080/login
I installed Go on an ubuntu server and am able to run the program, however, when I go to my ip addresss 18.104.22.168:8080 and/or 22.214.171.124:8080/login, my browswer appears to be trying to connect and then I get a message that a page isn’t available
I assumed that my ip address on the remote server was the same as localhost on my local machine, so if I simply run the Go program on my localmachine and can view it in the browser, shouldn’t I be able to do the same on the remote machine?
Is there some other type of configuration I need to set up besides what it says in the tutorial for setting up a Ubuntu server?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.