-
My server runs on CapRover using Docker and Nginx, and Nginx seems to be causing the client IP in IpPort to always be the server's IP (10.0.0.2 in this case). After some googling, it seems that CapRover's Nginx configuration allows the real IP to be passed in headers (caprover/caprover#1077), but I'm not sure how to access it in WatsonTcp. The ConnectionEventArgs class only contains the IpPort string and seemingly no other data to work with. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi, WatsonTcp only sees the IP of the TCP client to which it is peered, in your case, nginx. I'm not sure how nginx can pass the actual source IP since there is no concept of an HTTP header (e.g. x-forwarded-for). |
Beta Was this translation helpful? Give feedback.
Hi, WatsonTcp only sees the IP of the TCP client to which it is peered, in your case, nginx. I'm not sure how nginx can pass the actual source IP since there is no concept of an HTTP header (e.g. x-forwarded-for).