Hi,
I need the client IP of the current session. Unfortunately,
all server variables only return localhost.
WiseJ is integrated with
"ProxyPass / http://localhost:5000/"
Is this the cause of the problem? How do I get the client IP?
Thanks
Dirk
Server-Variables:
CONTENT_LENGTH: 573
CONTENT_TYPE: application/json
HTTP_ACCEPT: */*
HTTP_ACCEPT_LANGUAGE: de,en-US;q=0.7,en;q=0.3
HTTP_REFERER: https://xyz.de/
HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0
HTTPS: off
INSTANCE_ID: 1
LOCAL_ADDR: 127.0.0.1
PATH_INFO: /app.wx
PATH_TRANSLATED: /var/www/vhosts/xyz.de/httpdocs/wisej/app.wx
QUERY_STRING: ?_sc=1679901736729
REMOTE_ADDR: 127.0.0.1
REMOTE_HOST: 127.0.0.1
REQUEST_METHOD: POST
SERVER_NAME: localhost
SERVER_PORT: 5000
SERVER_PORT_SECURE: 0
SERVER_PROTOCOL: HTTP/1.1
SERVER_SOFTWARE: Wisej-Middleware
URL: /app.wx
Hi Dirk,
The issue you’re facing is indeed caused by the ProxyPass.
Unfortunately, this isn’t a Wisej.NET issue, you could perhaps try something from StackOverflow to try and fix it?
Best,
Alaa
Yes, of course. Tried everything I found in the forum and Application variables.
Application.UserHostAddress: 127.0.0.1
Application.UserHostName: 127.0.0.1
Hi Dirk,
Did you try using the Application.UserHostAddress property?
Best,
Alaa
Please login first to submit.