Solve the problem that the external network of Alibaba cloud student server cannot be accessed

Time:2020-10-20

Question:

Recently, Alibaba cloud launched a free student cloud server. As a student party, I did not hesitate to lead one.

Solve the problem that the external network of Alibaba cloud student server cannot be accessed

Due to the previous experience of using Tencent cloud, it is still very easy to configure the environment, using the popular Windows Server + xampp.

But there was a problem during the visit:
Remote connection is OK, and the access to localhost is OKInternet access has been timeout

Solve the problem that the external network of Alibaba cloud student server cannot be accessed

Solve the problem that the external network of Alibaba cloud student server cannot be accessed

resolvent:

At first, I thought that port 80 was blocked. I tried to change the HTTP port, but it still didn’t work. The Internet couldn’t access it.

Then I went to alicloud’s background and found that there was a “security group” option,

Solve the problem that the external network of Alibaba cloud student server cannot be accessed

Click in and have a look. It turns out that the port is not open,
Ports 3389 and 22 are enabled by default, but 80443 and 3306 are not,

Solve the problem that the external network of Alibaba cloud student server cannot be accessed

Therefore, click add security group rule:

Solve the problem that the external network of Alibaba cloud student server cannot be accessed

Fill in the port. Do not change the others,
Authorization object 0.0.0.0/0 refers toAny address can be accessed

Solve the problem that the external network of Alibaba cloud student server cannot be accessed

Then you can access the HTTP Internet,

Solve the problem that the external network of Alibaba cloud student server cannot be accessed

If you need the functions of HTTPS and MYSQL, you can open 443 and 3306 by yourself.

summary

Tencent cloud has no port restrictions. Alibaba cloud only opens 3389 (Remote Desktop) and 22 (SSH) ports by default.