title: Delphi XE5 datasnap server getting LAN IP?
body: <p>I'm starting some testing with DataSnap. </p>
  
  <p>I'm trying to create a simple server using the wizard of the new server, the server is created successfully. </p>
  
  <p>Using the component DSTCPServerTransport1 OnConnect event I put the following code:</p>
  
  <pre><code>procedure TServerContainer1.DSTCPServerTransport1Connect(
    Event: TDSTCPConnectEventObject);
  begin
    showmessage('Hello World!');
  end;
  </code></pre>
  
  <p>the problem is that I am behind a router ("dlink 2750b"). </p>
  
  <p>1: already configured a virtual server on the router 
  <img src="https://i.stack.imgur.com/O4tbG.jpg" alt="enter image description here"></p>
  
  <p>2: I've tried port forwarding on the router
  <img src="https://i.stack.imgur.com/n375v.jpg" alt="enter image description here"></p>
  
  <p>3: I've tried to create a DMZ host on the router
  <img src="https://i.stack.imgur.com/LP3ub.jpg" alt="enter image description here"> </p>
  
  <p>but the DataSnap server only accepts connections from network (192.168.1.77 is my server) not from external 177.102.148.80
  <img src="https://i.stack.imgur.com/BwJ3g.jpg" alt="enter image description here"></p>
  
  <p><strong>Strange thing happens</strong> if I access the site <a href="http://www.yougetsignal.com/tools/open-ports/" rel="nofollow noreferrer">http://www.yougetsignal.com/tools/open-ports/</a> and try to check the port 211 DataSnap server OnConnect triggers the event and displays the message 'Hello World!'
  <img src="https://i.stack.imgur.com/JwukN.jpg" alt="enter image description here"></p>
  
  <p>immediately when I press the "Check" button 
  OnConnect triggers the event and displays the message ("Hello World!")</p>
  
  <p><img src="https://i.stack.imgur.com/vMTrt.jpg" alt="enter image description here"></p>
  
  <p>Anyone have any suggestions on what I can try?</p>