118 words
1 minutes
Open Ports With Powershell on Windows

Intro#

Tired of going to control center every time to open your ports? Well i made some commands to make the proccess way quicker and easier because ain’t nobody got no time to open that ugly messy app to open some ports.

Commands#

NOTE

Remember to change “PORT” to whatever port you want to open.
And replace ” NAME HERE ” with whatever display name you want to use.

Outbound directions#

New-NetFirewallRule -DisplayName " NAME HERE " -Direction Outbound -Protocol UDP -LocalPort PORT -Action allow
New-NetFirewallRule -DisplayName " NAME HERE " -Direction Outbound -Protocol TCP -LocalPort PORT -Action allow

Inbount directions#

New-NetFirewallRule -DisplayName " NAME HERE " -Direction Inbound -Protocol TCP -LocalPort PORT -Action allow
New-NetFirewallRule -DisplayName " NAME HERE " -Direction Inbound -Protocol UDP -LocalPort PORT -Action allow
Open Ports With Powershell on Windows
https://tomergamertv.com/blog/posts/powershell-openports/
Author
TomerGamerTV
Published at
2024-10-29