In addition, the differences between different cloud server configurations are also explained separately.
In order for the port to work properly, the following tasks need to be completed:
1, the port is in listening state, that is, there is a program listening to the port;
2. The firewall of the server has opened the corresponding port;
3. The security group policy of the cloud server has added relevant inbound rules;
First, the port is in listening state.
This needs to be implemented by the application, and it needs to be implemented by itself (if there is a command line, please let us know).
Secondly, the firewall opened the corresponding port.
1. Take the firewall as an explanation here. If it is a service firewall, please Baidu yourself or change it to a firewall.
Turn off the service firewall
Open the firewall firewall
If the cloud server itself uses a firewall, ignore the above steps.
2. Open the port
Take ports 9000-9049 as an example, and open tcp and udp ports respectively.
Note: The port must be restarted, otherwise the port will not be opened.
3. Check the port opening.
Port open normally.
Third, the inbound rules.
Different cloud servers add different related security group policies. Here only shows the servers I have contacted, namely vultr from abroad and Azure from Microsoft (that is, the service firewall used by this guy, which took me a long time to understand, anti-human! ! ! ), Alibaba Cloud.
1.vultr
Add inbound rule
Add an inbound rule to an instance.
2. Microsoft Azure
Refer to official documents
/en-us/azure/ virtual machine /windows/NSG- Getting Started-Portal
Add an inbound rule to an instance.
3. Alibaba Cloud
Fourth, summary.
For the time being, only these three cloud servers have related operations, and other cloud platforms should be similar.
In addition, I don't know much about the configuration of the local server because I haven't touched it, and it's very troublesome to know (it seems that port mapping is needed? )。
If there are any new changes, they will be added.