When I create a local host from Nodejs or Python it starts
local host:8000 or 3000
i don't want 8000 or any number.
How can I get only local host?
Port Number Description: the number you see is the port number. it distinguishes between different applications in a single host (your computer for your case). for example let's say you have a website and a file server running on your computer. when you type localhost in your browser, it reaches your computer ip address but how does it know which application to request for data? webserver or file server? this is where the port number comes handy. when webserver is running on port 9000 for example and you type localhost:9000, you are telling your browser to go to your computer (localhost) and ask webserver application (port 9000) for data.
Answer to Your Question: if you type localhost without any port number, it connects to port 80 of the host by default (it's a convention or so) so if you run your application on port 80, you get what you wanted.
Extra: there is also a 443 port which is the default port for https request but i don't think you are using ssl right now.
Create local host without any number