title: Delphi XE5 Rest Datasnap Server. Getting Client IP Address
body: <p>I'm trying to get a client's IP address and other client information using <code>DSServer</code>'s <code>onconnect</code> event with the following code.  </p>
  
  <p>My problem is that <code>DSConnectEventObject.ChannelInfo</code> is <code>nil</code> every time. Additionally, I can't resolve the IP addresses.  </p>
  
  <p>Please help me. Thank you.</p>
  
  <pre><code>procedure TWebModule1.DSServer1Connect(DSConnectEventObject: TDSConnectEventObject);
  var
       ci: TDBXClientInfo;
  begin
       ci := DSConnectEventObject.ChannelInfo.ClientInfo;
       AddLog(Format('Client %s Connected IP: %s, Port: %s', 
           [ci.Protocol, ci.IpAddress, ci.ClientPort])
       );
  end;
  </code></pre>