[GH-ISSUE #338] How can I frpc multiple clients(behind NAT) to one frps server? #248

Closed
opened 2026-05-05 12:03:00 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @Microos on GitHub (May 27, 2017).
Original GitHub issue: https://github.com/fatedier/frp/issues/338

I just tried with one client and it's wonderful! And is that possible for me to frpc multiple clients(behind NAT) to one frps server?

Originally created by @Microos on GitHub (May 27, 2017). Original GitHub issue: https://github.com/fatedier/frp/issues/338 I just tried with one client and it's wonderful! And is that possible for me to frpc multiple clients(behind NAT) to one frps server?
Author
Owner

@fatedier commented on GitHub (May 30, 2017):

It's no different with one client. Just note that each proxy name mustn't be same.

<!-- gh-comment-id:304807203 --> @fatedier commented on GitHub (May 30, 2017): It's no different with one client. Just note that each proxy name mustn't be same.
Author
Owner

@Microos commented on GitHub (May 30, 2017):

Do you mean I should create multiple [common] sections in ./frps.iniwith different listening bind_ports and for each client, the ./frpc.ini contains a corresponding server_port plus a distinct remote_port?

<!-- gh-comment-id:304810022 --> @Microos commented on GitHub (May 30, 2017): Do you mean I should create multiple `[common]` sections in `./frps.ini`with different listening `bind_ports` and for each client, the `./frpc.ini` contains a corresponding `server_port` plus a distinct `remote_port`?
Author
Owner

@runique commented on GitHub (Nov 29, 2017):

You could configure the frpc.ini with different proxy name.
for example, one frpcs.ini:
[webaaa]
type = http
...

and another frpc.ini:
[webbbb]
type = http
...

you could get it surely.

<!-- gh-comment-id:347888929 --> @runique commented on GitHub (Nov 29, 2017): You could configure the frpc.ini with different proxy name. for example, one frpcs.ini: [webaaa] type = http ... and another frpc.ini: [webbbb] type = http ... you could get it surely.
Author
Owner

@WooodHead commented on GitHub (Jun 2, 2018):

What if I want to access two clients both with SSH?

I realized I can use different port:

[ssh1]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6000

[ssh2]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6005

<!-- gh-comment-id:394072041 --> @WooodHead commented on GitHub (Jun 2, 2018): # What if I want to access two clients both with SSH? I realized I can use different port: [ssh1] type = tcp local_ip = 127.0.0.1 local_port = 22 remote_port = 6000 [ssh2] type = tcp local_ip = 127.0.0.1 local_port = 22 remote_port = 6005
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#248
No description provided.