Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When I'm working on my app in a coffee shop, I want to make sure no one can see the app, which runs on localhost:8080.

How do you configure Windows Firewall to block external connections to 8080 but still allow you to connect to the port on your own machine?

share|improve this question
I'd prefer to set my web server to listen only loopback connection –  at8eqeq3 May 7 '11 at 15:29

2 Answers 2

The answers to this question of mine on Stackoverflow.com allow you to set this up, however this is using Apache rather than IIS.

share|improve this answer

Windows Firewall should be doing that automatically by default unless you explicitly open it. Which perhaps you have for when you're not at the coffee shop, but network profiles (Home/Work or Public) or what you want to use. If you have a rule allowing access to 8080, make sure it's enabled only for Home/Work and not for Public. Assuming that you use Public when connecting to an untrusted access point, which you obviously should.

share|improve this answer

Your Answer


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.