为何用外网或者局域网部署 就有Exception: Can not connect to tcp://127.0.0.1:1238 Connection refused in 报错

ChuGuo

截图

截图

截图
到达一下这一步就有报错
截图
报错如下
截图

Exception: Can not connect to tcp://127.0.0.1:1238 Connection refused in /mnt/hgfs/wwwweb/vendor/workerman/gatewayclient/Gateway.php:1300
Stack trace:
#0 /mnt/hgfs/wwwweb/vendor/workerman/gatewayclient/Gateway.php(726): GatewayClient\Gateway::getAllGatewayAddressesFromRegister()
#1 /mnt/hgfs/wwwweb/vendor/workerman/gatewayclient/Gateway.php(701): GatewayClient\Gateway::getAllGatewayAddress()
#2 /mnt/hgfs/wwwweb/vendor/workerman/gatewayclient/Gateway.php(383): GatewayClient\Gateway::getBufferFromAllGateway(Array)
#3 /mnt/hgfs/wwwweb/vendor/workerman/gatewayclient/Gateway.php(159): GatewayClient\Gateway::getClientIdByUid('1')
#4 /mnt/hgfs/wwwweb/application/push/controller/Verify.php(76): GatewayClient\Gateway::isUidOnline('1')

Register注册的是局域网ip 这里提示报错怎么还是连接本机ip

3856 2 0
2个回答

ChuGuo

有dalao帮帮萌新吗

  • 暂无评论
ChuGuo

已解决,Register监听地址不能为局域网或者外网地址。。只能监听本地127.0.0.1或者0.0.0.0

  • 暂无评论
年代过于久远,无法发表回答
×
🔝