title: How to ping from EC2 instance to on-premises Windows Server using AWS VPN?
body: <p>By following the link below, I have successfully setup Windows Server 2012 R2 as a Customer Gateway.</p>
  
  <p><a href="https://docs.aws.amazon.com/vpc/latest/adminguide/customer-gateway-windows-2012.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/vpc/latest/adminguide/customer-gateway-windows-2012.html</a></p>
  
  <p>I am able to ping the EC2 instance from my on-premises Windows Server. However, I want to do the vice-versa i.e., to ping the on-premises Windows Server IP from EC2 inside instance (RDP). May I know how to do this please?</p>
  
  <p>I logged into EC2 instance through RDP. Pinged my on-premises Windows Server from there (192.168.X.X) but it returned 'Request timed out'.</p>
  
  <p>Why do I need this?</p>
  
  <p>I am doing all these because I want to migrate &amp; replicate data automatically from my on-premises SQL Server to DB in Cloud. I decided to use AWS Database Migration Service (DMS). In order to set source endpoint (on-premises SQL Server), I need to let AWS communicate to my on-premises network through private IP. DMS should recognize 192.168.X.X\MSSQLServer.</p>