How to Grant su (Superuser) Access to a User in Ubuntu (F.A.Q)
How can I enable a UDP port instead of TCP?
Modify the command to use -Protocol UDP
, like this:
New-NetFirewallRule -DisplayName "Allow UDP Port 8080" -Direction Inbound -Action Allow -Protocol UDP -LocalPort 8080
How do I check if a port is open?
Use the following command:
Test-NetConnection -ComputerName localhost -Port 8080
Can I enable multiple ports at once?
Yes, separate ports with commas:
New-NetFirewallRule -DisplayName "Allow Multiple Ports" -Direction Inbound -Action Allow -Protocol TCP -LocalPort 8080, 9090, 443
Do I need to restart my computer for the changes to take effect?
No, firewall rules take effect immediately.