Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to make only java be allowed to use a certain port?

OS: Windows Web Server 2008 R2

No access to router (hosted box).

share|improve this question
You need to put a lot more detail in your question please, at least your OS. – Ryan Ries Jan 2 '13 at 14:53
I added some stuff, anything else? (also added which application now: java) – Deniz Zoeteman Jan 2 '13 at 14:55

You could use a personal firewall to enforce a rule for this specific behavior. For example, Windows Firewall with Advanced Security snap-in supports rules on port and application level. See Microsoft's documentation on Windows Firewall with Advanced Security on Windows Server 2008 R2 or this page for a quick tutorial on rule setup.

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.