#1 2018-04-20 11:56:05

edwinsn
Member
Registered: 2010-07-02
Posts: 1,218

[solved] Get the IP in a server-side interface-based service method

@ab,

Is it possible to obtain the requesting client's IP address and TSQLAuthUser instance, inside of an interface-based service method on the server side? Thanks.

Last edited by edwinsn (2018-04-20 13:52:56)


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#2 2018-04-20 12:54:57

Chaa
Member
Registered: 2011-03-26
Posts: 249

Re: [solved] Get the IP in a server-side interface-based service method

Offline

#3 2018-04-20 13:00:01

igors233
Member
Registered: 2012-09-10
Posts: 241

Re: [solved] Get the IP in a server-side interface-based service method

ServiceContext.Request.SessionRemoteIP is for IP and ServiceContext.Request.SessionUserName for username (or do you need something else from TSQLAuthUser)?

Offline

#4 2018-04-20 13:50:44

edwinsn
Member
Registered: 2010-07-02
Posts: 1,218

Re: [solved] Get the IP in a server-side interface-based service method

Thank you two gentlemen!
@igors233, that's more than enough for now smile


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

Board footer

Powered by FluxBB