[GH-ISSUE #2995] Getting Real IP Addresses for Port Forwarding or P2P #2394

Closed
opened 2026-05-05 13:32:28 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @EMREOYUN on GitHub (Jun 27, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/2995

Describe the feature request

While using port forwarding with frp, all connections reach to client shows as came from localhost, not from real address. Is it possible to enable real addresses?

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @EMREOYUN on GitHub (Jun 27, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/2995 ### Describe the feature request While using port forwarding with frp, all connections reach to client shows as came from localhost, not from real address. Is it possible to enable real addresses? ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [X] Security - [X] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@fatedier commented on GitHub (Jun 27, 2022):

https://github.com/fatedier/frp#get-real-ip

<!-- gh-comment-id:1167176231 --> @fatedier commented on GitHub (Jun 27, 2022): https://github.com/fatedier/frp#get-real-ip
Author
Owner

@EMREOYUN commented on GitHub (Jun 27, 2022):

https://github.com/fatedier/frp#get-real-ip

image
Doesn't work on TCP connections & clients also receive unsupported protocol errors and can't connect to the forwarded server as well.

<!-- gh-comment-id:1167221321 --> @EMREOYUN commented on GitHub (Jun 27, 2022): > https://github.com/fatedier/frp#get-real-ip ![image](https://user-images.githubusercontent.com/35144629/175928714-3d43d288-0a24-43aa-b6a3-c147e26e9dc1.png) Doesn't work on TCP connections & clients also receive unsupported protocol errors and can't connect to the forwarded server as well.
Author
Owner

@Becods commented on GitHub (Jun 28, 2022):

You need to make sure that the server software you are using supports Proxy Protocol and turn it on.

<!-- gh-comment-id:1168461635 --> @Becods commented on GitHub (Jun 28, 2022): You need to make sure that the server software you are using supports Proxy Protocol and turn it on.
Author
Owner

@EMREOYUN commented on GitHub (Jun 28, 2022):

Alright, it seems we need to develop an implementation for the server as a plugin. Thanks for the answer.

<!-- gh-comment-id:1168673520 --> @EMREOYUN commented on GitHub (Jun 28, 2022): Alright, it seems we need to develop an implementation for the server as a plugin. Thanks for the answer.
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#2394
No description provided.