Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server can bind to 80 but client failed to connect with it #4215

Open
2 of 11 tasks
SoftCoderCritic opened this issue May 12, 2024 · 1 comment
Open
2 of 11 tasks

Server can bind to 80 but client failed to connect with it #4215

SoftCoderCritic opened this issue May 12, 2024 · 1 comment

Comments

@SoftCoderCritic
Copy link

Bug Description

here is the simple config for testing

server:

bindPort = 80

client:

serverAddr = server ip
serverPort = 80

[[proxies]]
name = "ssh"
type = "tcp"
localIP = "127.0.0.1"
localPort = 22
remotePort = 12552

I can successfully use port 1080, and any port greater than 1024 without any issues, but I'm unable to use common ports like 80 and 443. The firewall accepts all incoming ports, and when I start the server with sudo, it successfully binds to port 80. However, when I start the client, it continuously tries to connect to the server. If I switch to a different port, the connection is established immediately.

Here are the relevant logs:

[sub/root.go:142] Starting frpc service with the configuration file [./frpc.toml].
[client/service.go:294] Attempting to connect to server...
Could there be any configuration I might have missed? I'm open to testing any suggestions. Any help would be greatly appreciated.

frpc Version

latest

frps Version

latest

System Architecture

linux/amd64, mac/arm64

Configurations

server:

bindPort = 80

client:

serverAddr = server ip
serverPort = 80

[[proxies]]
name = "ssh"
type = "tcp"
localIP = "127.0.0.1"
localPort = 22
remotePort = 12552

Logs

No response

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
@xqzr
Copy link

xqzr commented May 12, 2024

ISP 可能会阻止 80 端口传入

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants