[GH-ISSUE #2422] 双穴主机绑定不成功 #1929

Closed
opened 2026-05-05 13:14:33 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @zsinba on GitHub (Jun 2, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2422

[REQUIRED] hat version of frp are you using

Version:

[REQUIRED] What operating system and processor architecture are you using
OS:
CPU architecture: Windows2019数据中心版本

[REQUIRED] description of errors

confile

log file

Steps to reproduce the issue

  1. 在阿里云开的一个ECS, 安装 的Windows Server2019
  2. 绑定了两张网卡, 分别 是172.19.196.166; 172.19.196.168
  3. 166的这个ip分配给IIS用了,占用了80和443; 168的这个分配给FRPS用, 但是运行时提示:
    D:\frp_0.36.2_windows_amd64>frps.exe -c frps_full.ini
    Create server listener error, listen tcp 172.19.196.168:80: bind: An attempt was
    made to access a socket in a way forbidden by its access permissions.

我确认168的这个IP,没有绑定端口给其他应用使用; 也使用netstat -ano 查看了,的确没有使用到这个ip;
但是FRPS就是启动不了.

Supplementary information

Can you guess what caused this issue

Checklist:

  • [] I included all information required in the sections above
  • [] I made sure there are no duplicates of this report (Use Search)
Originally created by @zsinba on GitHub (Jun 2, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2422 <!-- From Chinese to English by machine translation, welcome to revise and polish. --> <!-- ⚠️⚠️ Incomplete reports will be marked as invalid, and closed, with few exceptions ⚠️⚠️ --> <!-- in addition, please use search well so that the same solution can be found in the feedback, we will close it directly --> <!-- for convenience of differentiation, use FRPS or FRPC to refer to the FRP server or client --> **[REQUIRED] hat version of frp are you using** <!-- Use ./frpc -v or ./frps -v --> Version: **[REQUIRED] What operating system and processor architecture are you using** OS: CPU architecture: Windows2019数据中心版本 **[REQUIRED] description of errors** **confile** <!-- Please pay attention to hiding the token, server_addr and other privacy information --> **log file** <!-- If the file is too large, use Pastebin, for example https://pastebin.ubuntu.com/ --> **Steps to reproduce the issue** 1. 在阿里云开的一个ECS, 安装 的Windows Server2019 2. 绑定了两张网卡, 分别 是172.19.196.166; 172.19.196.168 3. 166的这个ip分配给IIS用了,占用了80和443; 168的这个分配给FRPS用, 但是运行时提示: D:\frp_0.36.2_windows_amd64>frps.exe -c frps_full.ini Create server listener error, listen tcp 172.19.196.168:80: bind: An attempt was made to access a socket in a way forbidden by its access permissions. 我确认168的这个IP,没有绑定端口给其他应用使用; 也使用netstat -ano 查看了,的确没有使用到这个ip; 但是FRPS就是启动不了. **Supplementary information** **Can you guess what caused this issue** **Checklist**: <!--- Make sure you've completed the following steps (put an "X" between of brackets): --> - [] I included all information required in the sections above - [] I made sure there are no duplicates of this report [(Use Search)](https://github.com/fatedier/frp/issues?q=is%3Aissue)
Author
Owner

@zsinba commented on GitHub (Jun 2, 2021):

问题已解决,与FRP无关.
原因:
Windows主页,打开IIS服务后,他绑定的是:
0.0.0.0:80
这样的话,他是绑定了当前主机的所有网卡了.
解决办法:
netsh http add iplisten ipaddress="" 这个是最重要的.
这样让IIS只绑定指定的IP, 这样多穴主机就可以分别监听了.

这样做的原因:
我购买了一台配置相当不错的ECS,但是只有一个公网IP, 监听了IIS,不能再使用Nginx和Tomcat再监听80了. 所以就做了多个公网IP,使用EIP来分别 服务不同事的应用.这样带宽翻倍,而且还可以共用一台服务器.

<!-- gh-comment-id:853224818 --> @zsinba commented on GitHub (Jun 2, 2021): 问题已解决,与FRP无关. 原因: Windows主页,打开IIS服务后,他绑定的是: 0.0.0.0:80 这样的话,他是绑定了当前主机的所有网卡了. 解决办法: netsh http add iplisten ipaddress="" 这个是最重要的. 这样让IIS只绑定指定的IP, 这样多穴主机就可以分别监听了. 这样做的原因: 我购买了一台配置相当不错的ECS,但是只有一个公网IP, 监听了IIS,不能再使用Nginx和Tomcat再监听80了. 所以就做了多个公网IP,使用EIP来分别 服务不同事的应用.这样带宽翻倍,而且还可以共用一台服务器.
Author
Owner

@zsinba commented on GitHub (Jun 2, 2021):

多个EIP的情况下,后面如果想要拆成多机部署,也方便拆分.

<!-- gh-comment-id:853225248 --> @zsinba commented on GitHub (Jun 2, 2021): 多个EIP的情况下,后面如果想要拆成多机部署,也方便拆分.
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#1929
No description provided.