[GH-ISSUE #2439] client seems not to connect right server addr:port #1940

Closed
opened 2026-05-05 13:14:59 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @grizzlybears on GitHub (Jun 7, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2439

[REQUIRED] hat version of frp are you using

Version:

[REQUIRED] What operating system and processor architecture are you using
OS: fedora32
CPU architecture: x86_64

[REQUIRED] description of errors
The client seems not to connect the server noted in 'config file', but connect to '127.0.0.1:8889', thus got connection refused.

confile
xxxxx@fedora frp_0.37.0_linux_amd64 $ cat frpc.ini
[common]
server_addr = XXXXXXX
server_port = 17000
token = XXXXX

[secret_ssh_visitor]
type = stcp
; stcp 的访问者
role = visitor

server_name = SZR_SERVER
sk = XXXXXX

; 绑定本地端口用于访问 ssh 服务
bind_addr = 127.0.0.1
bind_port = 6000

log file
./frpc -c frpc.ini
2021/06/07 11:19:12 [W] [service.go:104] login to server failed: dial tcp 127.0.0.1:8889: connect: connection refused
dial tcp 127.0.0.1:8889: connect: connection refused

Steps to reproduce the issue

  1. Just 【./frpc -c frpc.ini】

Supplementary information

Can you guess what caused this issue
Where comes the ‘127.0.0.1:8889’ could be the clue, I guess.

Originally created by @grizzlybears on GitHub (Jun 7, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2439 <!-- 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: fedora32 CPU architecture: x86_64 **[REQUIRED] description of errors** The client seems not to connect the server noted in 'config file', but connect to '127.0.0.1:8889', thus got connection refused. **confile** xxxxx@fedora frp_0.37.0_linux_amd64 $ cat frpc.ini [common] server_addr = XXXXXXX server_port = 17000 token = XXXXX [secret_ssh_visitor] type = stcp ; stcp 的访问者 role = visitor server_name = SZR_SERVER sk = XXXXXX ; 绑定本地端口用于访问 ssh 服务 bind_addr = 127.0.0.1 bind_port = 6000 **log file** ./frpc -c frpc.ini 2021/06/07 11:19:12 [W] [service.go:104] login to server failed: dial tcp 127.0.0.1:8889: connect: connection refused dial tcp 127.0.0.1:8889: connect: connection refused **Steps to reproduce the issue** 1. Just 【./frpc -c frpc.ini】 2. 3. **Supplementary information** **Can you guess what caused this issue** Where comes the ‘127.0.0.1:8889’ could be the clue, I guess.
Author
Owner

@grizzlybears commented on GitHub (Jun 7, 2021):

Forgive me,
this not issue of frpc, someone had set 'xxx_proxy' variable on my env.

Please close this issue. :)

<!-- gh-comment-id:855696995 --> @grizzlybears commented on GitHub (Jun 7, 2021): Forgive me, this not issue of frpc, someone had set 'xxx_proxy' variable on my env. Please close this issue. :)
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#1940
No description provided.