walkor / walkor/GatewayClient

Windows+WSL开发环境

Open
#35 0 comments 0 reactions 0 assignees View on GitHub
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

![image](https://github.com/walkor/GatewayClient/assets/20694541/d2ce22e4-f1a4-4c6e-9401-b577ad33387d)

请问上述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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.