-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[Feature Request] Remote IP #1348
Comments
Ive got it, testing here, ive put into under the line: char hostname[256]; Testing now and will report back, if anyone wants the same.... |
Didnt worked... R_CLIENT_IP=/tmp/.X11-unix/X10 dunno what this is, but definitive not the remote ip.... Any Help? :-)) |
Ive got it working after hours of trying... I have changed 3 Files: env.c:
env.h:
session.c
Sometime i use instead "username" because "s->client_ip" doesnt work there... If anyone will optimize that, you are welcome :-) Cheers :-) |
You should be able to get the remote IP by reviewing your Router/Firewall logs. You may have to setup a special rule to log the information as connection come in to xrdp port 3389 or what ever port you are using. You can also see the port loging in by reviewing /var/log/xrdp.log |
This is not true anymore since this has been merged I believe. The log now always shows the IP+port of the server, not the client. Before the change:
After the change:
And everything is logged as debug now. For auditing purposes I'd actually prefer seeing this as a warning. Ideally it should be possible to use the log with something like Graylog to gather xrdp-usage metrics. |
Hi, is it possible somehow, to put the remote IP into User Environment, or any file or somewhere at all?
I need to get the Remote IP somehow/sowhere for the session...
doesnt matter for me from where i get the Remote IP, just need any ideas...
Cheers
The text was updated successfully, but these errors were encountered: