开发者社区> 问答> 正文

自定义的端口,telnet不通!

买的是阿里的学生认证服务器,服务器是linux系统ubuntu,。在安全组中添加了一个端口8000,在win电脑上用telnet 公网ip 8000 提示120.77.xx.xx无法打开到主机的连接。 在端口 8000: 连接失败。请问哪里出了问题?是防火墙大原因吗?
root@localhost:~# netstat -tunl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:32000 0.0.0.0:* LISTEN
tcp6 0 0 :::3306 :::* LISTEN
tcp6 0 0 :::21

root@localhost:~# iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:8000

请教大神帮忙!!!!_

展开
收起
mr.designer 2017-08-16 20:39:14 9028 0
1 条回答
写回答
取消 提交回答
  • 搞定了 是因为服务器端没有写服务程序 只有客户端不能连接

    2019-07-17 21:30:05
    赞同 1 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
探索连接的最后十秒钟“落时”的网关 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载