Ping uses ICMP, not TCP. ICMP has to be especially allowed through a firewall for ping to work, plus the server needs to be configured to respond to ping.
Given you've tagged AWS I guess that's where you're having your problem, even though you haven't said so in your question. Go into your EC2 security group, edit the inbound rules, add "All ICMP" to the list of types allowed in. Make sure the source is set to "anywhere" if that's what you want, or just your IP. If it's just your IP then the format is 1.2.3.4/32, and you can get your IP from here. Your IP is probably dynamic and so will change occasionally, so if it stops responding to ping change the rule. You could use 1.2.0.0/16 to try to account for this. ICMP isn't particularly risky to let through a firewall AFAIK.
There may be additional steps required to make Windows respond to pings, I don't know for sure.