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).

  • 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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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