[GH-ISSUE #2021] [W] [service.go:102] login to server failed: dial tcp 127.0.0.1:7000: connect: connection refused #1603

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

Originally created by @danielpmc on GitHub (Oct 3, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/2021

Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly.

Use the commands below to provide key information from your environment:
You do NOT have to include this information if this is a FEATURE REQUEST

What version of frp are you using (./frpc -v or ./frps -v)?
0.34.0

What operating system and processor architecture are you using (go env)?
Linux Debian 9, AMD64

Configures you used:
example one in readme

Steps to reproduce the issue:

  1. Follow steps on readme https://github.com/fatedier/frp/blob/dev/README.md#access-your-computer-in-lan-by-ssh

Describe the results you received:
[W] [service.go:102] login to server failed: dial tcp 127.0.0.1:7000: connect: connection refused
dial tcp 127.0.0.1:7000: connect: connection refused

Describe the results you expected:
to connect. (Done configs correctly)

Originally created by @danielpmc on GitHub (Oct 3, 2020). Original GitHub issue: https://github.com/fatedier/frp/issues/2021 Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly. Use the commands below to provide key information from your environment: You do NOT have to include this information if this is a FEATURE REQUEST **What version of frp are you using (./frpc -v or ./frps -v)?** 0.34.0 **What operating system and processor architecture are you using (`go env`)?** Linux Debian 9, AMD64 **Configures you used:** example one in readme **Steps to reproduce the issue:** 1. Follow steps on readme https://github.com/fatedier/frp/blob/dev/README.md#access-your-computer-in-lan-by-ssh **Describe the results you received:** [W] [service.go:102] login to server failed: dial tcp 127.0.0.1:7000: connect: connection refused dial tcp 127.0.0.1:7000: connect: connection refused **Describe the results you expected:** to connect. (Done configs correctly)
gitea-mirror 2026-05-05 13:01:24 -06:00
Author
Owner

@Becods commented on GitHub (Oct 3, 2020):

The problem cannot be judged according to the content provided
More profiles required

Please check that the firewall / port is unobstructed

<!-- gh-comment-id:703124946 --> @Becods commented on GitHub (Oct 3, 2020): The problem cannot be judged according to the content provided More profiles required **Please check that the firewall / port is unobstructed**
Author
Owner

@ChiragSukhala commented on GitHub (Oct 7, 2020):

Please ssh on frps machine and do
curl 127.0.0.1:7000

if they output is same

'[W] [service.go:102] login to server failed: dial tcp 127.0.0.1:7000: connect: connection refused
dial tcp 127.0.0.1:7000: connect: connection refused'

its an issue with FRP otherwise as @BecodReyes said your firewall / port is unobstructed.

<!-- gh-comment-id:705061143 --> @ChiragSukhala commented on GitHub (Oct 7, 2020): Please ssh on frps machine and do `curl 127.0.0.1:7000` if they output is same ``` '[W] [service.go:102] login to server failed: dial tcp 127.0.0.1:7000: connect: connection refused dial tcp 127.0.0.1:7000: connect: connection refused' ``` its an issue with FRP otherwise as @BecodReyes said your firewall / port is unobstructed.
Author
Owner

@blizard863 commented on GitHub (Oct 9, 2020):

nc -zv 127.0.0.1 7000

to check the port is active.

<!-- gh-comment-id:706049079 --> @blizard863 commented on GitHub (Oct 9, 2020): nc -zv 127.0.0.1 7000 to check the port is active.
Author
Owner

@github-actions[bot] commented on GitHub (Nov 24, 2020):

Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.

<!-- gh-comment-id:732515410 --> @github-actions[bot] commented on GitHub (Nov 24, 2020): Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.
Author
Owner

@jh-crescent commented on GitHub (Dec 23, 2020):

I solved this problem after downloading Go with: apt-get install gccgo-go

<!-- gh-comment-id:750254591 --> @jh-crescent commented on GitHub (Dec 23, 2020): I solved this problem after downloading Go with: `apt-get install gccgo-go`
Author
Owner

@mkamalkayani commented on GitHub (Dec 30, 2020):

I solved this problem after downloading Go with: apt-get install gccgo-go

@sqvictory Where did you install the Go package, on the client or server?

<!-- gh-comment-id:752577927 --> @mkamalkayani commented on GitHub (Dec 30, 2020): > I solved this problem after downloading Go with: `apt-get install gccgo-go` @sqvictory Where did you install the Go package, on the client or server?
Author
Owner

@jh-crescent commented on GitHub (Dec 30, 2020):

I solved this problem after downloading Go with: apt-get install gccgo-go

@sqvictory Where did you install the Go package, on the client or server?

both

<!-- gh-comment-id:752635725 --> @jh-crescent commented on GitHub (Dec 30, 2020): > > I solved this problem after downloading Go with: `apt-get install gccgo-go` > > @sqvictory Where did you install the Go package, on the client or server? both
Author
Owner

@Yunuuuu commented on GitHub (Mar 13, 2021):

the same problem, and gccgo-go didn't solved it

<!-- gh-comment-id:797867500 --> @Yunuuuu commented on GitHub (Mar 13, 2021): the same problem, and gccgo-go didn't solved it
Author
Owner

@Yunuuuu commented on GitHub (Mar 13, 2021):

I have turn off my firewall,

sudo ufw status

Status: inactive

I just tested the raw file, I downloaded frp file in https://github.com/fatedier/frp/releases/download/v0.35.1/frp_0.35.1_linux_arm64.tar.gz and uncompressed it, then I run

/frpc -c /frpc.ini

it gave this error

[W] [service.go:103] login to server failed: dial tcp 127.0.0.1:7000: connect: connection refused

and I also tested frp version 0.35.0, the same error returned.

my OS version is here

Linux version 5.8.0-44-generic (buildd@lgw01-amd64-054) (gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #50~20.04.1-Ubuntu SMP Wed Feb 10 21:07:30 UTC 2021

I also tried apt-get install gccgo-go, and the go version is below

go version go1.12.2 gccgo (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0 linux/amd64

the error remained here after installing go

<!-- gh-comment-id:797869797 --> @Yunuuuu commented on GitHub (Mar 13, 2021): I have turn off my firewall, ``` sudo ufw status Status: inactive ``` I just tested the raw file, I downloaded frp file in https://github.com/fatedier/frp/releases/download/v0.35.1/frp_0.35.1_linux_arm64.tar.gz and uncompressed it, then I run ``` /frpc -c /frpc.ini ``` it gave this error ``` [W] [service.go:103] login to server failed: dial tcp 127.0.0.1:7000: connect: connection refused ``` and I also tested frp version 0.35.0, the same error returned. my OS version is here ``` Linux version 5.8.0-44-generic (buildd@lgw01-amd64-054) (gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #50~20.04.1-Ubuntu SMP Wed Feb 10 21:07:30 UTC 2021 ``` I also tried apt-get install gccgo-go, and the go version is below ``` go version go1.12.2 gccgo (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0 linux/amd64 ``` the error remained here after installing go
Author
Owner

@WalterIeong commented on GitHub (Nov 15, 2022):

Delete the annotation and space after the script "server_addr = nas.frpxx.com # 服务器IP或者地址"

<!-- gh-comment-id:1315481743 --> @WalterIeong commented on GitHub (Nov 15, 2022): Delete the annotation and space after the script "server_addr = nas.frpxx.com **# 服务器IP或者地址**"
Author
Owner

@xiaoye-hhh commented on GitHub (Aug 9, 2023):

I meet '[W] [service.go:102] login to server failed: dial tcp 127.0.0.1:8889: connect: connection refused
dial tcp 127.0.0.1:7000: connect: connection refused'. I slove this problem by rebooting both server and client.

<!-- gh-comment-id:1670883105 --> @xiaoye-hhh commented on GitHub (Aug 9, 2023): I meet '[W] [service.go:102] login to server failed: dial tcp 127.0.0.1:8889: connect: connection refused dial tcp 127.0.0.1:7000: connect: connection refused'. I slove this problem by rebooting both server and client.
Author
Owner

@fleame commented on GitHub (Sep 27, 2023):

Delete the annotation and space after the script "server_addr = nas.frpxx.com # 服务器IP或者地址"

yes! this works for me.

<!-- gh-comment-id:1737472238 --> @fleame commented on GitHub (Sep 27, 2023): > Delete the annotation and space after the script "server_addr = nas.frpxx.com **# 服务器IP或者地址**" yes! this works for me.
Author
Owner

@beautyhansonboy commented on GitHub (Jan 10, 2024):

我已经关闭防火墙了

sudo ufw status

Status: inactive

我刚刚测试了原始文件,我在https://github.com/fatedier/frp/releases/download/v0.35.1/frp_0.35.1_linux_arm64.tar.gz下载了frp文件并解压缩,然后运行

/frpc -c /frpc.ini

它给出了这个错误

[W] [service.go:103] login to server failed: dial tcp 127.0.0.1:7000: connect: connection refused

我还测试了frp版本0.35.0,返回了相同的错误。

我的操作系统版本在这里

Linux version 5.8.0-44-generic (buildd@lgw01-amd64-054) (gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #50~20.04.1-Ubuntu SMP Wed Feb 10 21:07:30 UTC 2021

我也尝试了 apt-get install gccgo-go,go 版本如下

go version go1.12.2 gccgo (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0 linux/amd64

安装go后,错误依然存在
I also encountered this problem on the Linux system. How can I solve it
2024/01/10 09:46:34 [W] [service.go:132] login to server failed: dial tcp 44.237.78.176:7000: connect: connection refused

<!-- gh-comment-id:1884094528 --> @beautyhansonboy commented on GitHub (Jan 10, 2024): > 我已经关闭防火墙了 > > ``` > sudo ufw status > > Status: inactive > ``` > > 我刚刚测试了原始文件,我在https://github.com/fatedier/frp/releases/download/v0.35.1/frp_0.35.1_linux_arm64.tar.gz下载了frp文件并解压缩,然后运行 > > ``` > /frpc -c /frpc.ini > ``` > > 它给出了这个错误 > > ``` > [W] [service.go:103] login to server failed: dial tcp 127.0.0.1:7000: connect: connection refused > ``` > > 我还测试了frp版本0.35.0,返回了相同的错误。 > > 我的操作系统版本在这里 > > ``` > Linux version 5.8.0-44-generic (buildd@lgw01-amd64-054) (gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #50~20.04.1-Ubuntu SMP Wed Feb 10 21:07:30 UTC 2021 > ``` > > 我也尝试了 apt-get install gccgo-go,go 版本如下 > > ``` > go version go1.12.2 gccgo (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0 linux/amd64 > ``` > > 安装go后,错误依然存在 I also encountered this problem on the Linux system. How can I solve it 2024/01/10 09:46:34 [W] [service.go:132] login to server failed: dial tcp 44.237.78.176:7000: connect: connection refused
Author
Owner

@beautyhansonboy commented on GitHub (Jan 11, 2024):

Please ssh on frps machine and do curl 127.0.0.1:7000

if they output is same

'[W] [service.go:102] login to server failed: dial tcp 127.0.0.1:7000: connect: connection refused
dial tcp 127.0.0.1:7000: connect: connection refused'

its an issue with FRP otherwise as @BecodReyes said your firewall / port is unobstructed.

How was it resolved in the end

<!-- gh-comment-id:1886221584 --> @beautyhansonboy commented on GitHub (Jan 11, 2024): > Please ssh on frps machine and do `curl 127.0.0.1:7000` > > if they output is same > > ``` > '[W] [service.go:102] login to server failed: dial tcp 127.0.0.1:7000: connect: connection refused > dial tcp 127.0.0.1:7000: connect: connection refused' > ``` > > its an issue with FRP otherwise as @BecodReyes said your firewall / port is unobstructed. How was it resolved in the end
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#1603
No description provided.