#1 2024-05-28 09:50:42

yslmyr1990
Member
Registered: 2024-02-02
Posts: 10

How can I get Client IP on the server side?

Why the LowLevelRemoteIP of ctxt: TRestServerUriContext is nil, the RemoteIP is nil too.

Offline

#2 2024-05-28 09:58:23

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,510
Website

Re: How can I get Client IP on the server side?

By convention, LowLevelRemoteIP equals '' if the client IP is 127.0.0.1.

Offline

#3 2024-05-29 00:32:37

yslmyr1990
Member
Registered: 2024-02-02
Posts: 10

Re: How can I get Client IP on the server side?

ab wrote:

By convention, LowLevelRemoteIP equals '' if the client IP is 127.0.0.1.

but the client and server is on diffrent computer of the LAN, TRestHttpRemoteLogServer.RemoteLog(Ctxt: TRestServerUriContext) the LowLevelRemoteIP is ''

Offline

Board footer

Powered by FluxBB