cmd - How can i open a port in firewall with java -


i search way open port java socket in firewall, have idea cmd command or way thank you.

using cmd

if want open port on windows vista , higher can use following command

netsh advfirewall firewall add rule name="my_rule_name_incoming" dir=in action=allow protocol=tcp localport=4000 netsh advfirewall firewall add rule name="my_rule_name_outgoing" dir=out action=allow protocol=tcp localport=4000 

note have run command on pc in question


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -