[{"data":1,"prerenderedAt":63},["ShallowReactive",2],{"blog-post-ping-works-but-nothing-connects-why-ping-isnt-a-health-check":3},{"id":4,"meta":5,"title":21,"author":22,"body":26,"introduction":58,"date":59,"tags":60,"category":61,"blog_image":62,"intro":58,"featured":10},1378,{"type":6,"detail_url":7,"html_url":8,"slug":9,"show_in_menus":10,"seo_title":11,"search_description":11,"first_published_at":12,"alias_of":13,"parent":14},"blog.BlogPage","https:\u002F\u002Fwww.staging.doprax.rocks\u002Fd\u002Fapi\u002Fv2\u002Fpages\u002F1378\u002F","https:\u002F\u002Fwww.staging.doprax.rocks\u002Fd\u002Fdoprax-blogs\u002Fping-works-but-nothing-connects-why-ping-isnt-a-health-check\u002F","ping-works-but-nothing-connects-why-ping-isnt-a-health-check",false,"","2026-11-20T12:23:19.371123Z",null,{"id":15,"meta":16,"title":20},109,{"type":17,"detail_url":18,"html_url":19},"blog.BlogIndexPage","https:\u002F\u002Fwww.staging.doprax.rocks\u002Fd\u002Fapi\u002Fv2\u002Fpages\u002F109\u002F","https:\u002F\u002Fwww.staging.doprax.rocks\u002Fd\u002Fdoprax-blogs\u002F","Doprax Blogs","Ping Works but Nothing Connects, Why Ping Isn't a Health Check",{"id":23,"username":24,"full_name":25},5,"Swetlana","Swetlana A",[27,34,40,46,52],{"type":28,"value":29,"id":33},"section",{"title":30,"content":31,"subsections":32},"What Ping Actually Tests","\u003Cp data-block-key=\"iiulg\">Ping asks a server one simple question: are you there? It sends a tiny message and waits for the server to echo it back. If the echo comes, ping succeeds, and you learn that the server is powered on and reachable across the network at the most basic level.\u003C\u002Fp>\u003Cp data-block-key=\"f5mu8\">That's genuinely useful, but it's also the entire extent of what ping tells you. Ping uses its own small protocol, separate from the ones your real services use. It doesn't touch SSH, it doesn't touch your website, it doesn't open any of the ports your applications listen on. So a successful ping confirms the lights are on, and nothing more. The server answering ping is a different thing from the server being able to do its job, and the gap between those two is where the confusion lives.\u003C\u002Fp>",[],"fc24ff42-de9b-4b7f-a03c-f8e9d000cfe7",{"type":28,"value":35,"id":39},{"title":36,"content":37,"subsections":38},"Why Ping Can Succeed While Everything Fails","\u003Cp data-block-key=\"mct3q\">A server is not one single thing that is either working or not. It's a machine running many separate services, each listening on its own port, each able to fail on its own. Ping checks the machine's basic presence; it checks none of the services.\u003C\u002Fp>\u003Cp data-block-key=\"c4ni3\">So a service can be completely broken while ping sails through. SSH might have crashed, or be blocked by a firewall rule, or be listening on a different port than you expect, and ping knows nothing about any of that, because ping never talks to SSH. Your website might be down because the web server stopped, or because the port is closed, and ping still gets its cheerful echo from the machine underneath. The server is there, so ping is happy, while the specific thing you actually need is not working at all. This is exactly why \"but it responds to ping\" is one of the most misleading things in server troubleshooting.\u003C\u002Fp>",[],"6abfc820-bfcc-4cbd-a8f6-73df77974305",{"type":28,"value":41,"id":45},{"title":42,"content":43,"subsections":44},"Test the Thing You Actually Care About","\u003Cp data-block-key=\"g8kio\">The fix is simple: stop testing the machine and start testing the service. If you care whether SSH works, test SSH. If you care whether your website loads, test the website. Each test is specific, and each tells you something ping never could.\u003C\u002Fp>\u003Cp data-block-key=\"3p94i\">To check whether a specific port is open and accepting connections, use nc, which tries to actually connect to that port:\u003C\u002Fp>\u003Cp data-block-key=\"m6vkw\">nc -zv YOUR_SERVER_IP 22\u003C\u002Fp>\u003Cp data-block-key=\"9x5pj\">This tests port 22, the usual SSH port. If it says the connection succeeded, SSH is reachable. If it fails or times out while ping works, you've found your real problem: the machine is up, but that service or port is not. Change the number to test any port, for example 443 for a secure website.\u003C\u002Fp>\u003Cp data-block-key=\"jw67m\">To test a website properly, ask for the actual page the way a browser would:\u003C\u002Fp>\u003Cp data-block-key=\"cotd3\">curl -I https:\u002F\u002Fyourdomain.com\u003C\u002Fp>\u003Cp data-block-key=\"y0499\">This requests the page and shows the response. If you get a response line back, the web server is genuinely answering. If it hangs or errors while ping works, the problem is the web service or its port, not the machine.\u003C\u002Fp>",[],"8ec7b94b-b9b6-4794-aae6-ce787a06639a",{"type":28,"value":47,"id":51},{"title":48,"content":49,"subsections":50},"When the Path Itself Is the Problem","\u003Cp data-block-key=\"7ulos\">Sometimes ping works, the ports look right, and connections still stall or drop. When that happens, the issue may be somewhere along the network path between you and the server rather than on the server itself. To see the route and where it breaks down, mtr shows every hop and where delay or loss appears:\u003C\u002Fp>\u003Cp data-block-key=\"29so5\">mtr YOUR_SERVER_IP\u003C\u002Fp>\u003Cp data-block-key=\"sgxuh\">Each line is one step on the way to your server. If delay or packet loss builds up at a certain hop, that's where the path is struggling, and it points you at a network problem rather than a server one. This is the next thing to check when the service tests are inconclusive.\u003C\u002Fp>",[],"2f0fbc9a-f21a-4983-ac30-24bd63cbe377",{"type":28,"value":53,"id":57},{"title":54,"content":55,"subsections":56},"The Short Version","\u003Cp data-block-key=\"pp8q0\">Ping answers one small question, is the machine reachable, and nothing more. It can succeed while SSH, your website, or any other service is completely down, because ping never talks to those services at all. So don't trust ping as a health check. Test the actual thing you care about: nc to check a port, curl to check a website, and mtr when the path itself might be the problem. Test the service, not just the machine, and you'll stop being fooled by a server that answers ping while doing nothing else.\u003C\u002Fp>",[],"7fb96ca6-bb22-4ce6-ab03-495524308cd3","\u003Cp data-block-key=\"e3rsq\">Your server replies to ping, so it's up and everything should work, right? Then SSH won't connect, your website won't load, and you're left confused because the one test you ran said the server was fine. The catch is that ping answers a much smaller question than most people think, and tells you very little about whether your actual services work. This post explains what ping really checks, why it can succeed while everything else fails, and how to test what you actually care about.\u003C\u002Fp>","2026-11-20",[],"Networking","\u002Fd\u002Fmedia\u002Foriginal_images\u002FPing_Works_but_Nothing_Connects_Doprax.png",1795300181752]