GatewayClient icon indicating copy to clipboard operation
GatewayClient copied to clipboard

Windows+WSL开发环境

Open CosmosLibra opened this issue 6 months ago • 0 comments

当前系统 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正常?

CosmosLibra avatar Dec 20 '23 03:12 CosmosLibra