I understood the differences between java.exe and javaw.exe by this link.

I know that javaw.exe and java.exe belongs to Java from Sun Microsystems (Run time library), they have some dynamic ports in my server for example 49203, 49204, 49209, 49210 and so on.

I'd like to set a specific port for javaw.exe and jave.exe because of firewall policy. How can I do it?


I'd like to permit used ports and deny the others by switch ACL(Access Control List), For example:

switch(conf)>ip access-list extended Firewall
switch(conf-ipacc)>permit tcp any(source-ip) any(source-port) 53(server-local-port) priority 10
switch(conf-ipacc)>permit tcp any any 49158 priority 50
switch(conf-ipacc)>deny tcp any any any priority 1000

  • 1
    That would depend on the firewall you are using. If the ports are opened by java or a different application is rather irrelevant. Jan 15, 2019 at 7:08
  • I used the ACL on switch to allow or block specific port. For more clarification I updated my post.
    – AlirezaK
    Jan 15, 2019 at 7:13


Your Answer

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

Browse other questions tagged or ask your own question.