Adding a firewall rule for inbound RDP connection to windows 7

When you enable RDP for Windows 7 (default is enabled) , you will also need to add a firewall rule to accept RDP connections. By default this is not enabled. You can easily do it via the Windows firewall MMC by running the following command

 wf.msc 

or Add a rule for the same via the command prompt. Add a rule for accepting incoming RDP connections on TCP 3389.

netsh advfirewall firewall add rule name="RDP Allow TCP" dir=in protocol=tcp localport=3389 action=allow
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s