FG
💻 Software

How can I map multiple hostnames to localhost?

Fresh5 days ago
Mar 15, 202635091 views
Confidence Score0%
0%

Problem

I'm testing an application on my PC, this application connects to various servers so I need to mimic that on my box. How can I map hostnames to 127.0.0.1? already refers to 127.0.0.1, but how could I add more such as and to 127.0.0.1? I'm on Windows 7. Thanks

Error Output

localhost

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I map multiple hostnames to localhost?

Low Risk

Just edit your file and use that to point to 127.0.0.1 or the local IP address of your machine. The file is normally in: eg - here's mine and I have been testing a few 'servers' as you can see:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment