DomainsSpanish version

Support article

How to Ping a Domain: A Quick Diagnostic Guide

The Ping command is one of the oldest and most useful diagnostic tools in the hosting world. If your site loads slowly or not at all, start here.

Published: 30/06/2026Updated: 30/06/2026

The Ping command is one of the oldest and most useful diagnostic tools in the hosting world. If you feel your website loads slowly or doesn’t load at all, running a ping is the first step to finding out what’s going on.

At miHosting.com, we’ll show you how to use it like a pro to verify the connection with your server.

🧠 What is Ping and what is it for?

Running a ping is like sending a “hello, are you there?” to your server. Your computer sends a small packet of data to your domain’s address and waits for the server to respond.

This command helps you:

  • Find out if the server responds: If you get a reply, the server is up and connected to the internet.
  • Measure latency (lag): It tells you how long (in milliseconds) it takes for information to travel there and back.
  • See the IP address: It’s the quickest way to find out which IP address your domain is currently pointing to.

🛠️ How to run a Ping, step by step

You don’t need to install anything; your computer already has this tool built in.

On Windows 🪟

  1. Press the Windows key and type cmd, then press Enter.
  2. In the black window that appears, type: ping yourdomain.com (replace it with your actual domain name).
  3. Press Enter.

On macOS or Linux 🍎🐧

  1. Open the Terminal app (you can search for it in Spotlight with Cmd + Space).
  2. Type: ping yourdomain.com.
  3. Press Enter. (Note: On these systems, the ping doesn’t stop on its own; press Ctrl + C to stop it).

📊 How do I read the results?

When it finishes, you’ll see something like this:

  • Reply from [IP]: This means the server heard you and responded. Everything is working well!
  • Time (time=30ms): The lower this number, the faster the connection.
  • Request timed out: This indicates that the server didn’t respond. It might be down, there may be a firewall block, or the domain might not be pointing correctly.
  • Packets lost: If you sent 4 and received 2, you have an unstable connection (data loss).

💡 miHosting support tips

  • Firewall blocks: Sometimes, if you run many pings in a row, our security firewall may temporarily block your IP, mistaking it for an attack. If this happens, contact us to unblock you.
  • Ping vs. browser: If the ping responds fine but the website doesn’t load in Chrome, the problem isn’t with the connection — it’s likely an error in your website’s PHP code or your database.
  • Test from another network: If the ping fails, try running it from your phone using 4G/5G data. If it works there, the problem lies with your local internet provider.

📌 Don’t forget

  • Utility: It verifies basic connectivity between you and the server.
  • Speed: It runs in less than 10 seconds from any computer.
  • Diagnostics: It helps rule out whether the problem is with the server or your local connection.
  • IP: It instantly confirms where your domain is pointing.