netstat -ntpl
For example, if the ECS uses port 80, use curl to check whether network connectivity is normal.