Home » Guides » Security »

Published on 07.06.09 by Brent Trahan

Open a Port in Windows 7’s Firewall

Learn how to open a port in Windows 7’s firewall.

In this example I’m going to allow all traffic requesting port 80 (the default HTTP “web” port) through.

Open a Port in Windows 7’s Firewall

  1. Open Control Panel from the Start menu.
  2. Select Windows Firewall.

    open-port-windows-7-firewall-1

    Note: If Windows Firewall is not available, change View by to Large icons at the top right of the Control Panel window.

  3. Select Advanced settings in the left column of the Windows Firewall window.

    open-port-windows-7-firewall-2

  4. Select Inbound Rules in the left column of the Windows Firewall with Advanced Security window.

    open-port-windows-7-firewall-3

    Note: You can prevent outbound traffic by selecting Outbound Rules.

  5. Select New Rule in the right column.

    open-port-windows-7-firewall-4

  6. Select Port in the New Inbound Rule Wizard and then click Next.

    open-port-windows-7-firewall-5

  7. Select which protocol this rule will apply to (TCP or UDP), select Specific local ports, type a port number (80), port numbers (80,81), or a range of port numbers (5000-5010) and then click Next.

    open-port-windows-7-firewall-6

  8. Select Allow the connection and then click Next.

    open-port-windows-7-firewall-7

  9. Select when this rule applies (check all of them for the port to always stay open) and then click Next.

    open-port-windows-7-firewall-8

  10. Give this rule a name and then click Finish to add the new rule.

    open-port-windows-7-firewall-9

The port is now open and ready to be used.

Well known ports

Here is a list of the most common ports used:

1 TCP Port Service Multiplexer (TCPMUX)
5 Remote Job Entry (RJE)
7 ECHO
18 Message Send Protocol (MSP)
20 FTP — Data
21 FTP — Control
22 SSH Remote Login Protocol
23 Telnet
25 Simple Mail Transfer Protocol (SMTP)
29 MSG ICP
37 Time
42 Host Name Server (Nameserv)
43 WhoIs
49 Login Host Protocol (Login)
53 Domain Name System (DNS)
69 Trivial File Transfer Protocol (TFTP)
70 Gopher Services
79 Finger
80 HTTP
103 X.400 Standard
108 SNA Gateway Access Server
109 POP2
110 POP3
115 Simple File Transfer Protocol (SFTP)
118 SQL Services
119 Newsgroup (NNTP)
137 NetBIOS Name Service
139 NetBIOS Datagram Service
143 Interim Mail Access Protocol (IMAP)
150 NetBIOS Session Service
156 SQL Server
161 SNMP
179 Border Gateway Protocol (BGP)
190 Gateway Access Control Protocol (GACP)
194 Internet Relay Chat (IRC)
197 Directory Location Service (DLS)
389 Lightweight Directory Access Protocol (LDAP)
396 Novell Netware over IP
443 HTTPS
444 Simple Network Paging Protocol (SNPP)
445 Microsoft-DS
458 Apple QuickTime
546 DHCP Client
547 DHCP Server
563 SNEWS
569 MSN
1080 Socks

View all 50,000 ports.

Still need help? Ask your computer question now.

Related Guides:

79 Responses to “Open a Port in Windows 7’s Firewall”

Subscribe to this guide's comments RSS feed.

  1. Valdez says:

    Yes, Thanks Much!! After a couple of hours of trying to get this working, I found your site and was working w/in minutes!

  2. idunoleh says:

    im still puzzled of opening port for utorrent. we need both to crea8 both TCP and UDP? where about outbound do we need to crea8?

  3. loyal says:

    I tried this solution and I still get the same error message stating that ports 2077 and 2078 need to be opened or they are blocked by firewall. I even xompletely turned off my firewall after adding and ut still doesn’t work

  4. Alex says:

    THX M8 U SAVED ME :)

  5. HelloKitty says:

    I followed the rules on how to Open a Port in Windows 7’s Firewall above and I wanted to give a test to see if it works and still I get this:

    Pinging 127.0.0.1 with 32 bytes of data:
    Request timed out.
    Request timed out.
    Request timed out.
    Request timed out.

    Ping statistics for 127.0.0.1:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

    This should have work but apparently it doesn’t. So why am I losing packets? It seems that it cannot find back to my computer. Why? I would appreciate some help. Thanks

  6. Miku says:

    I did it step by step, but that port I opened still haven’t open! Now how do I undo it?

  7. Carl says:

    Thank-you. Worked perfectly

  8. Mehrdad says:

    Thank you! At last someone explained it clear! Better than Microsoft Link!

  9. Thank you! At last someone explained it clear! Better than Microsoft
    Link!

  10. Kymo says:

    Save my time. Thanks!

  11. chrisna says:

    Brilliant!!! I had to help someone with this and don’t have Win 7 on my pc yet so this helped like you can’t believe :)

  12. randy says:

    Not eaven Quickbooks support could figur this out. Thank you

  13. Thanks a lot. It was really helpful to me.

  14. LewBer says:

    Thanks. This is exactly what I needed.

  15. Johan says:

    Thanks! Really helpful, easy guide!

  16. Nima says:

    Thanks a lot, very helpful.

  17. Bob says:

    Thanks, but I still cannot open any UDP port. Port is forwarded in router. So I am stuck as I was before I read this article. I can open TCP ports.

  18. Armorcladed says:

    Start Craft 2 can be installed by opening the ports that are required for the game.

  19. HassanAlnagem says:

    Thanks a lot. It was really helpful to me.

  20. Blaster says:

    Nice post!!! It really helped me. ^^

  21. Besure says:

    simply gr8.. i was wanderin around quite sum tym u ‘ve don d magic!

  22. AymeN says:

    thanx dude that’s helpful

  23. ooty says:

    Thanks man really it helped a lot

  24. Gemma says:

    Thankyou very much, great easy gude.
    was having trouble with the ports from downloadng the latest World of Warcraft patch, and this help loads, thanks! :)

  25. Amey says:

    I am new about Win 7,
    I have add my program in windows 7 firewall exception list.

    how to Allow a Program through Windows 7’s Firewall by coding or programaticaly? just like through registry key.

  26. Hathrox says:

    Really thank you man. I lost 2 hours of reading fake posts :) THANK YOU REALLY MUCH MAN !!! GENIOUS !!! :)

  27. NS123 says:

    thanks u helped me a lot

  28. Ashish Kumar Das says:

    The post was very help ful man. Really thanks. It helpped me to solve my problem.

  29. Nasko says:

    Thank you man, thats help me a lot !!!

  30. Manu says:

    Hi, I am trying to start jboss server in eclipse (on win 7) and getting following error. Pls help

    FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
    ERROR: transport error 202: connect failed: Connection refused
    ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
    JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]

  31. Manu says:

    I have tried as u mentioned above to open the ports not not able to succeed

  32. Ankit says:

    You are a LIFE-SAVER dude…..

  33. Barbara says:

    Thank you for a great guide, I also found plenty of information for port forwarding on all versions of windows and router at:
    http://www.uitips.com/tips/how-to-open-ports-port-forwarding

  34. Victor Kumar says:

    Thankyou for the instructions. I use Postalmate POS software and recently performed a software update and the firewall settings were affected. I followed the procedure and was able to add firebird software to port 3050.

    Thanks Again for the easy to follow instructions..

  35. Dude says:

    THX! :)
    I was helped by this to make a gmod server :D

  36. Nathos says:

    Mate, your a legend. Thanks a load!!!!

  37. Stambone says:

    Nice post. Thanks a lot. :)))

  38. Jonni says:

    Thanks a load!! :D

  39. jot says:

    thanks alot you are an expert :)

  40. Ahmad says:

    I tried too much block port # 443 https, but this method didn’t work for me, caz i need to block sites accessing by https.
    can someone help.

    thanks

  41. Thankful Guy says:

    MAAAAAAAAAAN THANK YOU SOOOO MUCH *-*

  42. Robeeh says:

    Thx man it saved my problem with my metin2 server thx

  43. Amit Jain says:

    Thanks.. was easy to understand…

  44. name says:

    Thanks A lot. Really! It was good

  45. Shady says:

    I did all the steps from above and it was all a success but when i checked if the port was open from this website(http://www.yougetsignal.com/tools/open-ports/), it said it was closed.

    Any ideas?

  46. lalaalelele says:

    thanks man!

  47. satpal says:

    it was really helpful……..was able to add the ports
    //////////////thanx

  48. Manish says:

    Thanks. I couldn’t figure out managing ports in Windows 7. They are making things ever more complicated.

  49. Mubashir says:

    Thanks a lot :)

  50. luckyhp says:

    that was awesome explantion..:) i got it.. lets see if it works perfectly..:)

  51. Renz Ikari says:

    It works i opened my port 81
    check your ports here
    http://www.canyouseeme.org/

  52. ali says:

    Thanks,
    It was great!

  53. ben says:

    Mate, you are a dead set legend! Consise and straight to the point instructions! I’ve spent hours trolling different sites that gave me the absolute run-about. Now I can finally start work on my website !!!!!!

  54. Bob Rack says:

    If only the rest of the world was as straight forward an easy as this, I’d be a REALLY HAPPY CAMPER!!!!!!!

  55. Nitish Vishwakarma says:

    Thanks a lot i got it on my birthday this was just like a present….

  56. roslyn says:

    thanks so much for this! it was very helpful info. (^^.)

  57. Mihai says:

    if you’ll click my name, my site will be opened, if not, than my server is down….
    thank you, this solution worked for me…

  58. Irving says:

    Like most of the other posts here – very easy to understand!……step, by step illustration is %100 excellent!

  59. Justin.R.L says:

    I did this step by step, i even did it twice for both TCP and UCP, But the port 25565 Just wont open for me, Can any body help?! please iv been looking for a solution for days now :(

  60. janmejay says:

    thanks……..muahh!!!!!!

  61. Mr Fishy says:

    I did this, then went on a port checker and it still says port 80 is closed.
    http://www.yougetsignal.com/tools/open-ports/
    is the port checker i used.
    The game that requires port 80 to be open still doesnt work. What did i do wrong, do i have to be an administrator on my pc for this to work?

  62. phpDeveloer says:

    But 3306 port is not working when follow these steps.

  63. zamaan says:

    it helped. thanks a lot

  64. Munkh says:

    thanks a lot. Nice instruction

  65. Dheeraj says:

    Thanx a lot.Solved my problem.

  66. Ajit Mishra says:

    thanks ……..

  67. Diaa says:

    i have a problem with my firewall
    make me can’t do any thing of that
    when i open my firewall
    i have only one selection ( Use recommended settings )
    and when i select it
    i get this message
    Windows Friewall can’t change some of your settings .
    Error code 0×80070422
    Help Plz…

  68. Captain pk says:

    I tried the solution …but still the problem is same …could not open connection to the host on port 23…connection failed.

    Pl pl pl someone help me.

Leave a Reply

You must be logged in to post a comment.

Microsoft Windows is a registered trademark of Microsoft Corporation. Microsoft Corporation in no way endorses or is affiliated with MAXIMUMpcguides.com. All other products mentioned are registered trademarks of their respective companies. MAXIMUMpcguides IS NOT RESPONSIBLE for any damage or data loss to your computer from using this web site. All information on MAXIMUMpcguides is provided on an AS IS basis with NO WARRANTIES.

Copyright 2006-2014 Brent Trahan. All rights reserved.