Jump to content

Get IP Client


liteci
 Share

Recommended Posts

Hello liteci,

 

You can try something like this:

 

procedure TFormMain.UniFormActivate(Sender: TObject);
var
  C:TUniClientInfoRec;
  SessionID:String;
  IPAddress:String;
  BrowserType: string;
  BrowserVersion: Integer;
  OSType: string;
begin
  SessionID:=UniApplication.UniSession.SessionID;
  IPAddress:=UniApplication.RemoteAddress;
  C:=UniApplication.ClientInfoRec;
  BrowserType:=C.BrowserType;
  BrowserVersion:=C.BrowserVersion;
  OSType:=C.OSType;
end;

see http://forums.unigui.com/index.php?/topic/1486-how-to-get-client-ip-address/?hl=uniapplication.remoteaddress#entry5654 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...