Current location - Quotes Website - Collection of slogans - How to open the port to the server?
How to open the port to the server?
How does the server open new ports to the outside world?

Start-> run-> enter "cmd" and then enter netstat -an. There is an open port list to see if there is a number of 3080.

How to open the port of linux server

Modifying the firewall configuration requires modifying the file /etc/sysconfig/iptables. If you want to open any ports, please add one to them.

-A RH-Firewall- 1-INPUT-m state-state NEW-m TCP-p TCP-dport 152 1-j ACCEPT

Do this, where 152 1 is the port number to open, and then restart the firewall service of linux.

Command to stop/start the firewall service:

After logging in as root, execute.

Service iptables stop-stop

Service iptables start-start

(Maintenance orders are located in/* * *)

Firewall rules can only be activated when the iptables service is running. To start the service manually, use the following command:

/* * * iptables restart in service

To ensure that it starts at system boot, use the following command:

/* * * in/chk config-level 345 iptables on

Ipchains service cannot run at the same time as iptables service. To determine whether the ipchains service is disabled, execute the following command:

/* * * in/chkconfig-level 345 ipchains off

How to open a server port

Ports are all open, unless you have closed them, go where you closed them. There are many ways to close the port. Where to set exceptions for general firewalls, just add the ports you want to open to the exceptions.

How to view the open ports of the server?

Hello: 1. Windows comes with netstat command.

Regarding the netstat command, let's take a look at the introduction in the windows Help file:

Netstat

Displays protocol statistics and current TCP/IP network connections. This command can only be used after the TCP/IP protocol is installed.

Netstat [-a] [-e] [-n] [-s] [-p protocol ][-r][ interval]

parameter

[Ancient names or Latin modern names of animals and plants]

Show all connections and listening ports. Server connections are not usually displayed.

-e

Displays Ethernet statistics. This parameter can be used in combination with the -s option.

Tong -EN

Displays the address and port number in numeric format (instead of trying to find the name).

Constitute noun plural

Displays statistics for each protocol. By default, statistics of TCP, UDP, ICMP and IP are displayed. The p option can be used to specify the default subset.

-p protocol

Displays the connection of the protocol specified by the protocol; The protocol can be tcp or udp. If used with the -s option to display statistics for each protocol, the protocol can be tcp, udp, icmp or ip.

-r

Displays the contents of the routing table.

space

Redisplay the selected statistics, with a pause of seconds between each display. Press CTRL+B to stop redisplaying statistics. If this parameter is omitted, netstat will print the current configuration information once.

(1) Well-known ports: from 0 to 1023, which are closely bound with some services. Usually, the communication of these ports clearly indicates the protocol of a certain service. For example, port 80 has always been HTTP communication.

(2) Registration port: from 1024 to 49 15 1. They are loosely bound to some services. In other words, many services are bound to these ports, and these ports are also used for many other purposes. For example, many systems handle a dynamic port of about 1024.

(3) Dynamic and/or dedicated ports: from 49 152 to 65535. Theoretically, these ports should not be assigned to services. In fact, machines usually allocate dynamic ports from 1024. But there are exceptions: SUN's RPC port starts at 32768.

0 is usually used to analyze the operating system. This method is effective because "0" is an invalid port in some systems. When you try to connect it with an ordinary closed port, it will produce different results. Typical scanning: use the IP address 0.0.0.0, set the ACK bit and broadcast it in the Ethernet layer.

2. The command line tool fport under 2.windows2000.

Friends who use windows2000 are luckier than friends who use windows9X, because fport can be used to show the correspondence between local open ports and processes.

Fport is a software produced by FoundStone, which is used to list all open TCP/IP and UDP ports in the system, as well as the complete path, PID identification, process name and other information of their corresponding applications.

Active Ports, a graphical interface tool similar to Fport.

Active Ports, produced by SmartLine, can be used to monitor all open TCP/IP/UDP ports of computers. It can not only display all your ports, but also show the paths of programs corresponding to all ports, and whether local IP and remote IP (trying to connect to your computer IP) are active. ...& gt& gt

How to open the 86 10 port of the server?

1. First, click the right mouse button on "Computer Connection" in the lower right corner of the server system to open the "Network Connection" setting.

2. Select a normal network connection, and then click the right mouse button to open the properties.

3. Open the local connection properties and view the advanced options.

4. Click "Settings" in "Advanced".

5. Open the exception in the pop-up Windows firewall interface, as shown in the figure.

6. Just click "Add Port" in "Exception".

7. Enter the port number 86 10 to be added, as shown in the figure, and then click OK. Just restart the system.

How to test whether the server port is open on Windows system?

You can use the webmaster tool to test it.

Or the port corresponding to Start-Run -telnet IP (IP of the server). For example: telnet192.168.0.180.

If it disappears directly, the port is not open.

If it is a message, it is generally in a normal state.

How to Enable Port 80 of the Server

Click Start → Control Panel → Network Connection → Local Area Connection → Right Click → Properties, and then select Internet (TCP/IP) → Properties. Select the advanced tab in the Internet(tcp/ip) properties dialog box. In the Advanced TCP/IP Settings dialog box, click Options → TCP/IP Filtering → Properties. There are three items here, namely TCP, UDP and IP protocols. Suppose my system only wants to open four ports: 2 1, 80, 25, 1 10. Just tick "Allow Only" on "TCP Ports", click "Add" to add these ports in turn, and then confirm. Note: After modification, you will be prompted to restart, so that the setting will take effect. In this way, after the system compensation starts, only the port you just selected will be opened, and all other ports will not be opened.

How to open the port of server 80

1 detection port 80

You can type it in the browser.

127.0.0. 1 (or the external network IP configured by this machine, the default is 80). If it is accessible, port 80 is open.

2 detection network

You can find another machine to access your server. First, ping your external IP. If you can connect, there is no problem with the network.

3 Configure a firewall If there is no problem with the network, but other machines cannot access the website, it can only be a problem with the firewall. The firewall prohibits external access to port 80. Turn off the firewall or modify the configuration, it should be ok.

If you have any questions, please leave a message.

How to view the open ports of the server?

Whether it is a windows machine or a Linux machine, you can use the netstat command to view it. The parameters I usually use are:

netstat -tunlp