Can I use localhost?
h
Baconman321 (1104)

I am using this repl for a test, however I want to apply it to a project. I want to know what exactly remote and local databases are. I also want to know, if someone else from another computer enters information in, and the code says to store it in localhost, can I access that. Like, when they say localhost, does that mean only I can add information to it through the web browser, or does it mean it is hosted on my computer and people can still add information to it?

You are viewing a single comment. View All
Answered by eankeen (2246) [earned 5 cycles]
View Answer
[deleted]

Localhost is an inbuilt http address that a web server on your computer can use to serve web pages/assets from. It cannot be accessed from outside your computer. Often you can use this IP address, 127.0.0.1, as well as it maps to localhost.

Read this article: https://en.wikipedia.org/wiki/Localhost

CodeLongAndPros (1632)

@malvoliothegood If you look in the /etc/hosts file, you'll find that localhost is actually a DNS address defined before 8.8.8.8/8.8.4.4/1.1.1.1