[GH-ISSUE #3702] 面板IP绑定问题 #2948

Closed
opened 2026-05-05 13:54:05 -06:00 by gitea-mirror · 7 comments
Owner

Originally created by @WuMe-sicx on GitHub (Oct 19, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3702

Bug Description

三台国内服务器无法绑定本地IP地址,但是可以绑定127.0.0.1 这样的缺点是无法正常访问web面板
但是海外的服务器是可正常绑定上IP的 frps配置文件是一样的,国内服务器防火墙ALL全开
当前暂时,不清楚是服务器问题还是frp问题 只能请教一下

frpc Version

0.52.1

frps Version

0.52.1

System Architecture

linux/amd64

Configurations

国内服务器
image
海外服务器
image

Logs

No response

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @WuMe-sicx on GitHub (Oct 19, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3702 ### Bug Description 三台国内服务器无法绑定本地IP地址,但是可以绑定127.0.0.1 这样的缺点是无法正常访问web面板 但是海外的服务器是可正常绑定上IP的 frps配置文件是一样的,国内服务器防火墙ALL全开 当前暂时,不清楚是服务器问题还是frp问题 只能请教一下 ### frpc Version 0.52.1 ### frps Version 0.52.1 ### System Architecture linux/amd64 ### Configurations 国内服务器 ![image](https://github.com/fatedier/frp/assets/80626027/b6d1fd18-f5d8-4a8d-b478-1c5be6da722f) 海外服务器 ![image](https://github.com/fatedier/frp/assets/80626027/62a04e82-309d-4c37-b161-228ae474e013) ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [X] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@fatedier commented on GitHub (Oct 19, 2023):

你最关键的错误原因的提示日志没有截,比如说可能这个端口已经被其他应用占用了,可以换一个端口试试。

<!-- gh-comment-id:1770648332 --> @fatedier commented on GitHub (Oct 19, 2023): 你最关键的错误原因的提示日志没有截,比如说可能这个端口已经被其他应用占用了,可以换一个端口试试。
Author
Owner

@WuMe-sicx commented on GitHub (Oct 19, 2023):

你最关键的错误原因的提示日志没有截,比如说可能这个端口已经被其他应用占用了,可以换一个端口试试。

已修复
添加这两个变量
bindAddr = "0.0.0.0"
webServer.addr = "0.0.0.0"

<!-- gh-comment-id:1770656919 --> @WuMe-sicx commented on GitHub (Oct 19, 2023): > 你最关键的错误原因的提示日志没有截,比如说可能这个端口已经被其他应用占用了,可以换一个端口试试。 已修复 添加这两个变量 bindAddr = "0.0.0.0" webServer.addr = "0.0.0.0"
Author
Owner

@WuMe-sicx commented on GitHub (Oct 19, 2023):

不清楚是为什么webServer.addr = "0.0.0.0" 不能绑定当前服务器IP

修复完成 输出日志
2023/10/19 19:13:18 [I] [service.go:200] frps tcp listen on 0.0.0.0:7000
2023/10/19 19:13:18 [I] [service.go:261] http service listen on 0.0.0.0:80
2023/10/19 19:13:18 [I] [service.go:276] https service listen on 0.0.0.0:443
2023/10/19 19:13:18 [I] [service.go:312] Dashboard listen on 0.0.0.0:7500

<!-- gh-comment-id:1770658774 --> @WuMe-sicx commented on GitHub (Oct 19, 2023): 不清楚是为什么webServer.addr = "0.0.0.0" 不能绑定当前服务器IP 修复完成 输出日志 2023/10/19 19:13:18 [I] [service.go:200] frps tcp listen on 0.0.0.0:7000 2023/10/19 19:13:18 [I] [service.go:261] http service listen on 0.0.0.0:80 2023/10/19 19:13:18 [I] [service.go:276] https service listen on 0.0.0.0:443 2023/10/19 19:13:18 [I] [service.go:312] Dashboard listen on 0.0.0.0:7500
Author
Owner

@fatedier commented on GitHub (Oct 19, 2023):

不清楚是为什么webServer.addr = "0.0.0.0" 不能绑定当前服务器IP

错误提示里一般会说明具体的原因

<!-- gh-comment-id:1770679552 --> @fatedier commented on GitHub (Oct 19, 2023): > 不清楚是为什么webServer.addr = "0.0.0.0" 不能绑定当前服务器IP 错误提示里一般会说明具体的原因
Author
Owner

@WuMe-sicx commented on GitHub (Oct 19, 2023):

不清楚是为什么webServer.addr = "0.0.0.0" 不能绑定当前服务器IP

错误提示里一般会说明具体的原因

请问是这个错误嘛Oct 19 19:04:50 VM-12-13-debian frps[695]: create dashboard web server error, listen tcp 服务器IP:7500: bind: cannot assign requested addre>

<!-- gh-comment-id:1770686765 --> @WuMe-sicx commented on GitHub (Oct 19, 2023): > > 不清楚是为什么webServer.addr = "0.0.0.0" 不能绑定当前服务器IP > > 错误提示里一般会说明具体的原因 请问是这个错误嘛Oct 19 19:04:50 VM-12-13-debian frps[695]: create dashboard web server error, listen tcp 服务器IP:7500: bind: cannot assign requested addre>
Author
Owner

@fatedier commented on GitHub (Oct 19, 2023):

你 IP 填错了,或者那个 IP 并不是你服务器的网卡 IP,是云厂商通过某些方式将这个 IP 的流量转发到了你的服务器。

<!-- gh-comment-id:1770703395 --> @fatedier commented on GitHub (Oct 19, 2023): 你 IP 填错了,或者那个 IP 并不是你服务器的网卡 IP,是云厂商通过某些方式将这个 IP 的流量转发到了你的服务器。
Author
Owner

@WuMe-sicx commented on GitHub (Oct 19, 2023):

你 IP 填错了,或者那个 IP 并不是你服务器的网卡 IP,是云厂商通过某些方式将这个 IP 的流量转发到了你的服务器。

填错应该不可能,应该就是云厂商的问题, 关于加密和压缩启用了 服务端不显示 客户端实际是否有效果?

<!-- gh-comment-id:1770716263 --> @WuMe-sicx commented on GitHub (Oct 19, 2023): > 你 IP 填错了,或者那个 IP 并不是你服务器的网卡 IP,是云厂商通过某些方式将这个 IP 的流量转发到了你的服务器。 填错应该不可能,应该就是云厂商的问题, 关于加密和压缩启用了 服务端不显示 客户端实际是否有效果?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#2948
No description provided.