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

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

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,667
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.

Online

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

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

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