mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2422] 双穴主机绑定不成功 #1929
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#1929
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
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:
@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来分别 服务不同事的应用.这样带宽翻倍,而且还可以共用一台服务器.
@zsinba commented on GitHub (Jun 2, 2021):
多个EIP的情况下,后面如果想要拆成多机部署,也方便拆分.