容器端口映射后,通过宿主机ip访问会出错,不兼容!
- 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";能正常访问,

改为'192.168.188.88'; 就会报错:

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