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

Windows+WSL开发环境 #35

Open
CosmosLibra opened this issue Dec 20, 2023 · 0 comments
Open

Windows+WSL开发环境 #35

CosmosLibra opened this issue Dec 20, 2023 · 0 comments

Comments

@CosmosLibra
Copy link

当前系统
windows11 + wsl Ubuntu 20.04
开发环境
Workerman version:4.1.14 PHP version:8.2.13 laravel 8.7.5
Win IP地址 10.10.30.230
Ubuntu IP地址 172.18.232.186

win启用网络转发:netsh interface portproxy add v4tov4 listenport=2346 listenaddress=10.10.30.230 connectport=2346 connectaddress=172.18.232.186

ErrorException: stream_socket_server(): Unable to connect to tcp://10.10.30.230:2300 (Cannot assign requested address) in /var/www/html/vendor/workerman/workerman/Worker.php:2360
worker[Gateway:155] exit with status 64000

image

请问上述lanIp registerAddress变量 以及 Register 对象的参数应该填写什么,win下WebSocket connection正常?

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