mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3856] connect to server error: dial tcp 0.0.0.0:7000: connectex: No connection could be made because the target machine actively refused it. #3064
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#3064
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 @wo4wangle on GitHub (Dec 17, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3856
Bug Description
Addr is "117.13.194.95", why connect with 0.0.0.0? what's the issue
"telnet 117.13.194.95 7000" can connect to target in client.
frpc Version
0.53.0
frps Version
0.53.0
System Architecture
windows/amd64
Configurations
client
C:\portableApp\frp_0.53.0_windows_amd64>type frpc.toml
Addr = "117.13.194.95"
serverPort = 7000
proxies
name = "rdp"
type = "tcp"
localIP = "127.0.0.1"
localPort = 3389
remotePort = 6000
server
[root@VM-16-13-opencloudos frp_0.53.0_linux_amd64]# cat frps.toml
bindPort = 7000
Logs
client
C:\portableApp\frp_0.53.0_windows_amd64>frpc.exe -c frpc.toml
2023/12/18 01:50:05 [I] [root.go:141] start frpc service for config file [frpc.toml]
2023/12/18 01:50:05 [I] [service.go:288] try to connect to server...
2023/12/18 01:50:07 [W] [service.go:291] connect to server error: dial tcp 0.0.0.0:7000: connectex: No connection could be made because the target machine actively refused it.
2023/12/18 01:50:07 [I] [service.go:288] try to connect to server...
2023/12/18 01:50:07 [W] [service.go:291] connect to server error: dial tcp 0.0.0.0:7000: operation was canceled
2023/12/18 01:50:07 [I] [root.go:159] frpc service for config file [frpc.toml] stopped
login to the server failed: dial tcp 0.0.0.0:7000: connectex: No connection could be made because the target machine actively refused it.. With loginFailExit enabled, no additional retries will be attempted
server
[root@VM-16-13-opencloudos frp_0.53.0_linux_amd64]# ps -ef |grep -in frp
97:root 2175042 1 0 01:16 ? 00:00:00 ./frps -c frps.toml
[root@VM-16-13-opencloudos frp_0.53.0_linux_amd64]# cat nohup.out
2023/12/18 01:16:39 [I] [root.go:104] frps uses config file: frps.toml
2023/12/18 01:16:39 [I] [service.go:225] frps tcp listen on 0.0.0.0:7000
2023/12/18 01:16:39 [I] [root.go:113] frps started successfully
Steps to reproduce
...
Affected area
@superzjg commented on GitHub (Dec 18, 2023):
https://github.com/fatedier/frp/blob/dev/conf/frpc_full_example.toml#L9
@wo4wangle commented on GitHub (Dec 18, 2023):
It works, thank you
@vule20 commented on GitHub (Mar 13, 2024):
I'm having the same problem. I've looked at these configurations files but I havent been able resolve it. Please help me if you know it. Basically the frps is hosted on a server with a public IP, which I can only ssh into with a ssh -i ssh_key username@public_ip (exactly like how you would do with AWS). Here's my config file
@darld commented on GitHub (Apr 26, 2024):
Possible aws block frps?
@vule20 commented on GitHub (Apr 26, 2024):
Hi @darld , I've able to solve the problem. Thanks
@darld commented on GitHub (Apr 26, 2024):
I able to connect now as I need to change the 7000 port from ipv6 to ipv4 in the Aws ec2 instance security. But even connected, but my port of local server still unable to exposed to public internet.
@vule20 commented on GitHub (Apr 26, 2024):
Could you make a screenshot on the log on both the server and the client ?