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?
This number is called PORT number. Every URL, for example localhost also have PORT 80 by default but you don't need to type it as of HTTP request connects to PORT 80 as default behavior and HTTPS connects to port 443.
To archive this, you can follow/choose one of following two ways.

RUN NODEJS/PYTHON app on PORT 80 or PORT 443 (if you have SSL certificates). This way you you can access it bylocalhost without adding PORT number to URL.

Install web-server like apache or nginx and use reserve proxy feature to archive it.


NOTE

Point 1: This is easy way and does not need knowledge required for point 2.

Point 2: You must have knowledge of web-servers and reserve proxy feature.
Create local host without any number