我在GCE中启动了一个虚拟机实例并在tcp端口3080上进行了监听 . 还添加了防火墙规则以允许tcp端口3080.但是无法通过外部IP地址连接到该端口 .

ss -nl 命令回复:udp UNCONN 0 0 :: 1:123 ::: *
udp UNCONN 0 0 ::: 123 ::: *
tcp LISTEN 0 128 *:22:
tcp LISTEN 0 100 *:3080:
tcp LISTEN 0 128 ::: 22 ::: *

Firewall Details: gns33080 Network 默认 Priority 1000 Direction Ingress Action on match 允许 Source filters IP ranges 0.0.0.0/0 Protocols and ports tcp:3080

从我的笔记本电脑运行命令nc回复[chetanra @ InnoPad~] $ nc -nvz xx.xx.xx.xx 3080 nc:连接到35.200.163.9端口3080(tcp)失败:连接超时

其中xx.xx.xx.xx是GCE中我的VM实例的外部IP地址 .

我做错了吗?有没有办法调试什么是错的?

我在VM上运行Debian GNU / Linux 9.4(拉伸) .