Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

容器端口映射后,通过宿主机ip访问会出错,不兼容! #103

Open
dignfei opened this issue Feb 16, 2023 · 1 comment
Open

Comments

@dignfei
Copy link

dignfei commented Feb 16, 2023

宿主机ip 192.168.188.88
php容器映射端口 9138:9138

php容器内运行php8:
$gateway->lanIp = "127.0.0.1";能正常访问,

image

改为'192.168.188.88'; 就会报错:
image

@dignfei
Copy link
Author

dignfei commented Feb 16, 2023

然后 GatewayWorker 改回$gateway->lanIp = "127.0.0.1";

在其他容器通过宿主机ip访问这个GatewayWorker 会报错:
Gateway::$registerAddress = '192.168.188.88:9138';
Gateway::sendToClient($client_id, $message);
image
我设置了192.168.188,但是不起作用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant