19
7
I want to specify host names with two different ports in the Windows hosts
file.
Is there a way to do it? Or is it not allowed by Windows itself?
I have been wasting my time searching for the solution for the last 8 hours.
Is it possible to specify ports in the host file, hosts
? E.g.: 127.0.0.1:80
and 127.0.0.1:9211
1The HOSTS file only associates names with IP addresses, not IPs+port(s). Do check superuser.com, however, by describing more of the specifics of what you are trying to do (is this for a web server etc. etc.) as there are many ways to achieve this type of mapping, but always depending on specifics at hand. – None – 2010-02-21T18:44:55.830
You need NGNIX or Apache HTTP server as a proxy server for forwarding http requests to appropriate application -> which listens particular port – Musa – 2018-02-08T18:08:01.357