I have three localhost site with different port..
localhost:80
localhost:81
localhost:82
I want to make fake domains for each site, instead of type localhost:80 on browser, I would like to use a fake domain (such as www.myweb.com)..
I already tried edit the hosts file in C:\windows\system32\drivers\etc..
I add a line 127.0.0.1:81 www.firstfakedomain.com
to the hosts file
But it doesn't works!
is it any configuration to be made in this box...

In your host file don;t specify port number. Your host file should have entry like like below
127.0.0.1 test1.com.au
127.0.0.1 test2.com.au
In your IIS application specify host name as test1.com.au and test2.com.au for your applications on port 80.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With