#1 2012-12-17 17:56:54

paulh
Member
Registered: 2012-05-12
Posts: 44

Getting the client PC's public IP address in server interface methods

Hi, I have a server interface with lots of methods that are working great to marshal data to and from the server using JSON serialised objects.
Are there any properties I can use in these server-side methods to determine the calling client's IP details? I can easily look this up on the client side and include in the call to the server if necessary but if that information is already available to me on the server-side it would save me needing to break my interfaces and add to all relevant methods.

Offline

#2 2012-12-17 18:56:19

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

Re: Getting the client PC's public IP address in server interface methods

Search the forum, or the documentation (in its unstable release 1.18), and you will find out RemoteIP in header.
For instance, TAuthSession instance extract the remote IP.

See http://synopse.info/forum/viewtopic.php?id=652

Offline

Board footer

Powered by FluxBB