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.


    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.


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


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

  5. Select New Rule in the right column.


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


  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.


  8. Select Allow the connection and then click Next.


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


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


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)
18 Message Send Protocol (MSP)
20 FTP — Data
21 FTP — Control
22 SSH Remote Login Protocol
23 Telnet
25 Simple Mail Transfer Protocol (SMTP)
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
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
444 Simple Network Paging Protocol (SNPP)
445 Microsoft-DS
458 Apple QuickTime
546 DHCP Client
547 DHCP Server
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. Roder says:

    Thanks alot!

  2. 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!

  3. 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?

  4. 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

  5. Alex says:

    THX M8 U SAVED ME :)

  6. 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 with 32 bytes of data:
    Request timed out.
    Request timed out.
    Request timed out.
    Request timed out.

    Ping statistics for
    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

  7. Miku says:

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

  8. Carl says:

    Thank-you. Worked perfectly

  9. Mehrdad says:

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

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

  11. Kymo says:

    Save my time. Thanks!

  12. 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 :)

  13. randy says:

    Not eaven Quickbooks support could figur this out. Thank you

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

  15. LewBer says:

    Thanks. This is exactly what I needed.

  16. Johan says:

    Thanks! Really helpful, easy guide!

  17. Nima says:

    Thanks a lot, very helpful.

  18. 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.

  19. Armorcladed says:

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

  20. HassanAlnagem says:

    Thanks a lot. It was really helpful to me.

  21. Blaster says:

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

  22. Besure says:

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

  23. Karan says:

    Thanx a Lot :)

  24. AymeN says:

    thanx dude that’s helpful

  25. ooty says:

    Thanks man really it helped a lot

  26. 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! :)

  27. 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.

  28. Hathrox says:

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

  29. NS123 says:

    thanks u helped me a lot

  30. Ashish Kumar Das says:

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

  31. Nasko says:

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

  32. 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]

  33. Manu says:

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

  34. Ankit says:

    You are a LIFE-SAVER dude…..

  35. 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:

  36. 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..

  37. Dude says:

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

  38. Nathos says:

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

  39. Stambone says:

    Nice post. Thanks a lot. :)))

  40. Jonni says:

    Thanks a load!! :D

  41. jot says:

    thanks alot you are an expert :)

  42. 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.


  43. Thankful Guy says:


  44. Robeeh says:

    Thx man it saved my problem with my metin2 server thx

  45. Amit Jain says:

    Thanks.. was easy to understand…

  46. name says:

    Thanks A lot. Really! It was good

  47. 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?

    • Agent_00nolj says:

      maybe it dosen’t open ports for some security settings but opens them for most of options so website can not do anything to you, without any software on your computer that uses the port.

  48. lalaalelele says:

    thanks man!

  49. satpal says:

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

  50. Manish says:

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

  51. Mubashir says:

    Thanks a lot :)

  52. luckyhp says:

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

  53. Renz Ikari says:

    It works i opened my port 81
    check your ports here

  54. ali says:

    It was great!

  55. 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 !!!!!!

  56. 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!!!!!!!

  57. Nitish Vishwakarma says:

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

  58. roslyn says:

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

  59. 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…

  60. Irving says:

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

  61. 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 :(

  62. janmejay says:


  63. Mr Fishy says:

    I did this, then went on a port checker and it still says port 80 is closed.
    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?

  64. phpDeveloer says:

    But 3306 port is not working when follow these steps.

  65. zamaan says:

    it helped. thanks a lot

  66. aman says:

    thankxx :)

  67. Munkh says:

    thanks a lot. Nice instruction

  68. Dheeraj says:

    Thanx a lot.Solved my problem.

  69. Ajit Mishra says:

    thanks ……..

  70. 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 0x80070422
    Help Plz…

  71. 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 to Stambone

Subscribe to this guide's comments RSS feed.

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-2019 Brent Trahan. All rights reserved.