Firewall Tips for Remote Control with VNC and RDP

  • netsh advfirewall firewall add rule name="VNC_UDP" dir=in action=allow protocol=UDP localport=5900 profile=any enable=yes
  • netsh advfirewall firewall add rule name="VNC_TCP" dir=in action=allow protocol=TCP localport=5900 profile=any enable=yes
  • netsh advfirewall firewall add rule name="RDP_UDP" dir=in action=allow protocol=UDP localport=3389 profile=any enable=yes
  • netsh advfirewall firewall add rule name="RDP_TCP" dir=in action=allow protocol=TCP localport=3389 profile=any enable=yes

netsh advfirewall firewall add rule name="VNC_UDP" dir=in action=allow protocol=UDP localport=5900 profile=any enable=yes

netsh advfirewall firewall add rule name="VNC_TCP" dir=in action=allow protocol=TCP localport=5900 profile=any enable=yes

netsh advfirewall firewall add rule name="RDP_UDP" dir=in action=allow protocol=UDP localport=3389 profile=any enable=yes

netsh advfirewall firewall add rule name="RDP_TCP" dir=in action=allow protocol=TCP localport=3389 profile=any enable=yes