Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Due to unidentified problem, any service pid4 is using port 80 of my Windows 7-64 bit PC's. I ultimately decided to change my default port to 8080. But how can I change the way that when I enter localhost in URL, then automatically the data from 127.0.0.1:8080 comes.

I also edited the hosts file as

127.0.0.1:8080 localhost

but it didn't work. Please help me someone.

share|improve this question
1  
On what OS? If it's linux use iptables. But I would tend to identify the uniedentified problem, though. –  Michuelnik Jul 22 '12 at 12:54
1  
It helps if you explain what the problem is rather than starting with a suggested solution. Why do you need to do this? What issue do you expect this to solve? –  David Schwartz Jul 22 '12 at 15:26
    
The 'unidentified problem' could be Skype. It uses port 80 unless you tell it not to. Whatever it is, find it and fix it. At the moment you're only generating more problems. –  EJP Jul 23 '12 at 5:22
add comment

1 Answer 1

You can't specify a port in a hosts file or DNS A record. You need to do one of two things:

  1. Type :8080 into the browser at the end of your URL.

  2. Redirect traffic on port 80 to 8080 using a reverse proxy, rewrite rule, or firewall rule.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.