Tencent / nohost

基于 Whistle 实现的多账号多环境远程配置及抓包调试平台
https://nohost.pro
Other
1.4k stars 160 forks source link

端口暴露失败 #31

Closed Thinker-Mars closed 3 years ago

Thinker-Mars commented 3 years ago

大家好,我在阿里云ecs启动了nohost服务,监听8181端口,并且像往常一样开放了此端口,但是奇怪的是,在公网telnet这个端口并不通,想问下大家是怎么操作的?(已尝试过变更端口及重启防火墙) 备注: 1、nohost服务是正常启动的 image 2、端口已暴露 image

avwo commented 3 years ago

试试 n2 restart -p "serverIp:8181" ,其中 severIp 是暴露到公网到ip

Thinker-Mars commented 3 years ago

试试 n2 restart -p "serverIp:8181" ,其中 severIp 是暴露到公网到ip

你好,输出如下: image 上面生成的这个访问地址很诡异...

avwo commented 3 years ago

if config 能否看到这个公网ip

buxuku commented 3 years ago

和Thinker-Mars一样的问题,通过ifconfig是看不到公网IP的.我尝试通过nginx转发也无法访问

Thinker-Mars commented 3 years ago

和Thinker-Mars一样的问题,�通过ifconfig是看不到公网IP的.我尝试通过nginx转发也无法访问

兄弟你是团队想用这个吗?在公司内网试下?云服务器似乎不行..

avwo commented 3 years ago

Nohost 默认是根据 client ip 来关联选择的环境,如果是外网接入可能会出现多个机器共用一个 client ip 的情况,需要在 Nohost 上再加一层网关(如:Nginx)设置请求头 x-whistle-client-id 来替代 client ip。