walkor / walkor/GatewayWorker

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

Open
#103 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
1k
Forks
291
PR merge metrics
No merged PRs in 30d

Description

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

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

![image](https://user-images.githubusercontent.com/25482706/219432125-ddf69044-d9df-4da6-ad85-2ce3a8738f31.png)

改为'192.168.188.88'; 就会报错:
![image](https://user-images.githubusercontent.com/25482706/219432178-cf8b20ca-38af-4a30-b9b0-fa86e8d85ea4.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

No source files or tests are named. Start by reproducing the PHP container with port mapping 9138:9138, comparing access through 127.0.0.1 and 192.168.188.88; inspect the reported error and container networking behavior. Done means the cause is identified and host-IP access works or its incompatibility is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.