Windows+WSL开发环境
- Dominant language
- PHP
- Stars
- 348
- Forks
- 100
- PR merge metrics
- No merged PRs in 30d
Description
当前系统
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

请问上述lanIp registerAddress变量 以及 Register 对象的参数应该填写什么,win下WebSocket connection正常?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at vendor/workerman/workerman/Worker.php:2360 and review how the reported address is used when creating the socket. Check the Windows portproxy command, the WSL and Windows IP addresses, and the lanIp, registerAddress, and Register parameters mentioned in the issue. Done means determining the correct configuration for this Windows 11 and WSL setup and confirming that the WebSocket connection works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- laravel, php
- Domain
- backend, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100