This document records two items:
1.win7, open the mouth.
2. Server (2003 or other older version of the system with 2003 for example)
Telnet command available when testing port
Listening ports:
C:\Documents and Settings\administrator>netstat-na
Test whether the port is open:
C:\Documents and Settings\administrator>telnet 127.0.0.1 8500
Connecting to 127.0.0.1 ... Cannot open connection to host on port 8500: Connection Failed
Start opening ports below:
1.win7, open the mouth.
Win7 Firewall exception Setting method
Control Panel (select View as large icon in upper right corner)---Firewall---Advanced settings---Advanced settings---Outbound rules---Right-most new rule New Outbound Rule Wizard, in the first step of the wizard, select the type of firewall rule you want to create, and select the second port.
Win7 Firewall Add Port method
Win7 's firewall has made a relatively large upgrade setup that has been divided into inbound and outbound. The following is an example of opening Tomcat remote access 8080. Control Panel \ All Control Panel items \ Windows Firewall entry
Inbound rule Settings
The first step is to select the inbound rule and then create a new rule, select the port, and then next
The second step is to select TCP to select a specific port and then enter the port, where multiple ports need to be separated by commas for example: 88,8080
Step three, select Allow connection
Fourth Step select the scope of the application rule
Fifth Step enter the rule name
Outbound Rule Settings
The first step is to select the inbound rule and then create a new rule, select the port, and then next
The second step is to select TCP to select a specific port and then enter the port, where multiple ports need to be separated by commas for example: 88,8080
Step three, select Allow connection
Fourth Step select the scope of the application rule
Fifth Step enter the rule name
At this point, the firewall rules are set and enabled!
In addition to the Win7 IIS7, simply enable inbound rules: BranchCache content Retrieval (http-in)
Outbound rules: BranchCache content Retrieval (http-out).
Step diagram:
2.window2003 Server Port Open
After logging into the server remotely, go to the Control Panel and double-click Firewall:
Click on the "Exceptions " tab to see the open ports that have been added to the server and click Add Port.
Enter the port number you want to add in the pop-up box, such as 8080 and click OK.
This allows you to see the added 8080 port number in the exception, and click OK to finish.
Then go to the Control Panel and click on "network connection " .
Right-click Properties on the local connection and double-click Internet Protocol (TCP/IP )
Click on the "Advanced " option
Click "Options" in the pop-up box and click on "Properties "
In the TCP/IP filter pop-up box, add the TCP protocol port. For example , add 8080, and then click OK.
You can see that port 8080 has been added, and it will be effective to restart the server after you determine it.
Tip: If a third-party firewall (with a firewall level) is installed on the server, the operation level and steps are equivalent to Windows Firewall action steps!
Listening ports:
C:\Documents and Settings\administrator>netstat-na
Test whether the port is open:
C:\Documents and settings\administrator>telnet 127.0.0.1 8080
Connecting to 127.0.0.1 ... Cannot open connection to host on port 8080: Connection failed
Original address
(Turn) Open window is a server port--take 8080 for example