[GH-ISSUE #3170] [Feature Request] use the same remote port by multiple local machines #2541

Closed
opened 2026-05-05 13:38:12 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @shabakett on GitHub (Nov 16, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/3170

how to expose 10 machines each running REST API (http) server on port 8080 using the same remote port 5588 and a custom header or query string to distinguish between destinations?

Originally created by @shabakett on GitHub (Nov 16, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/3170 how to expose 10 machines each running REST API (http) server on port 8080 using the same remote port 5588 and a custom header or query string to distinguish between destinations?
Author
Owner

@shabakett commented on GitHub (Nov 17, 2022):

already done with vhost_http_port, subdomain_host, subdomain

<!-- gh-comment-id:1318888548 --> @shabakett commented on GitHub (Nov 17, 2022): already done with `vhost_http_port`, `subdomain_host`, `subdomain`
Author
Owner

@Becods commented on GitHub (Nov 19, 2022):

As you said, just set a different custom header on each REST API server.

Or you can modify the api server callback.

<!-- gh-comment-id:1320945834 --> @Becods commented on GitHub (Nov 19, 2022): As you said, just set a different custom header on each REST API server. Or you can modify the api server callback.
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#2541
No description provided.