Ping command Press “Control + C” keys to stop the command and see the statistics of packets and round-trip time. See examples, options, and error messages for the ping command. Ping Usage. Its name comes from the sonar "ping" used in submarines, where a sound pulse is sent out to detect objects. Type the Ping Command. Step 2: Enter the Ping Command. 42. command to test the connection between the local server/computer and a remote UNIX and Linux server. 6 days ago · 6. It measures round-trip time, identifies packet loss, and helps diagnose network issues. It is widely used in various operating systems, including Windows, Linux, and macOS. The basic syntax for the Ping command is as follows: ping [options] destination. com Following the above instructions, enter into the Command Prompt: ping google. Here are 5 common ping command options with examples: “-c” option: This option specifies the number of packets to send. A ping command usually outputs some other information about network performance, e. Ping command with the target computer’s IP address: Im nächsten Bild senden wir einen Ping-Befehl an den Router in unserem lokalen Netzwerk unter Verwendung seiner IP-Adresse. By default, ping sends 4 packets to the destination machine. The Ping command is an essential network diagnostic tool that allows users to check the connectivity and reachability of a specific host or IP address. , www. Learn how to use the ping command and measure how smoothly your data travels. 100. Detailed Description. If you want to see a complete list of options, all you have to do is type ping /help at the Command Prompt and press Enter. Summary. In this article, we’ve explained 12 practical ping command examples for testing the reachability of a networked device. Windows, by default, only sends four. Sep 11, 2021 · How to Constantly Ping IP Address in CMD. The ping command should be: ping <IP address of the computer> -t Jun 7, 2024 · Understanding the results of a ping command. 1. Jul 14, 2023 · Ping is a very common method for troubleshooting the accessibility of hosts on a network. Contents: How the ping command works; How to check the ping? How to reduce the ping? Ping command parameters; How the ping command works. example. For example, to send 5 packets, you can use the following command: ping -c 5 google. 1. Run the ping command with parameters: Enter the ping command in the command line and assign the latter either the IP address or host name of the target computer as a parameter by adding the corresponding information to the command separated by a space. To view all available options of the ping command, type man ping in your terminal. Set timeout for the ping command . Feb 11, 2025 · Ping commands allow you to test the reachability of a host and measure the time it takes for packets to travel to the destination and back. By default, ping on Windows sends four ICMP Basic Ping Command. By understanding its basic usage, advanced options, and best practices, you can effectively diagnose and resolve a wide range of network issues. ping google. Sep 2, 2024 · The ping utility is invoked from a command prompt by specifying the desired target host using IP address or domain name: ping 8. Like the-q option, the ping flood command Mar 21, 2025 · When I ping the IP address doesn't look right. To interrupt and quit this command, press Ctrl+C. If you have any questions or feedback, feel free to leave a comment. This article explains how ping tests work, pinging networked devices, reading a ping test, and ping testing limitations for versions of Windows that run Command For such a small, basic utility, the ping command can be a valuable tool in numerous situations. You’ll find the Mac terminal under “Applications” in the subfolder “Utilities”. By default, the interval is one second. Dec 23, 2024 · Using the Ping Command to Troubleshoot Network Issues; In addition to testing connectivity, the ping command can also be used to troubleshoot network issues. How to Check Network Connectivity Using Ping Command Ping ist ein einfaches, weit verbreitetes, plattformübergreifendes Netzwerk-Dienstprogramm zur Überprüfung, ob ein Host in einem Internetprotokoll (IP)-Netzwerk erreichbar ist. Apr 4, 2022 · ping 10. So, now we know that the ping command is useful mostly for troubleshooting the accessibility of devices on the network and the internet. As a command-line based utility, ping lends itself to easy use in various scripts, allowing for numerous pings to run and be recorded for all manner of usage. Here’s the command syntax: ping -f destination. Some options available in the ping command are given below. 1) or a domain name (e. Mar 26, 2024 · Understanding the Ping Command. It works by sending Internet Control Message Protocol (ICMP) echo request packets to the target host and listening for ICMP echo reply packets. Ping is executed from the command-line, also known as the Command Prompt or PowerShell. Basic ping Command. After The ping command in Windows is a powerful tool to verify the connection between your computer and another computer or server. For example, imagine I'm remotely connected to a Windows server from my The ping command sends one datagram per second and prints one line of output for every response received. Apr 20, 2025 · Ping Parameters primarily uses the ping command and more advanced usage parameters. If either of these commands returns ICMP echo reply messages, network connectivity exists between the two devices. To get the IPv4 IP address, use the following command. Apr 17, 2025 · Learn how to use the ping command in Linux and Windows to test and diagnose network connectivity. When running a ping command, you determine: Jun 26, 2019 · In MacOS, the ping command line program is also run as a continuous ping in the default setting. com-i - to set the interval between packets. Find out how to ping a URL, IP address, router, or loopback address, and what the results mean. 99. Jul 24, 2020 · ping is a command-line network utility that allows you to test the IP-level connectivity of a given host on the network. com Jun 10, 2021 · Useful Ping Command Modifiers for Windows. Don't get confused with the -c flag. Whether you’re troubleshooting a finicky internet connection or just curious about your network’s speed, knowing how to perform a ping test is a valuable skill. It is used to specify the number of packages whereas the -w flag works as a timer. destination: This can be an IP address (e. 221 mit 10 Echo-Anforderungsmeldungen zu pingen, die jeweils ein Datenfeld von 1000 Bytes aufweisen, geben Sie Folgendes ein: ping /n 10 /l 1000 10. This command sends echo requests to Google’s public DNS server. Dec 2, 2023 · Use the command ping -t hostname where hostname is the name of the destination host to send endless ping requests until interrupted. You can see more of these in the Advanced Options for the ping Command and Display Options for the ping Command sections below. Close the Command Prompt. Flood the Network with the Linux Ping Command. ping continues to send packets until you interrupt the command with the Ctrl-C keys. Meanwhile, these are the ping command options on Linux:-c - to specify the number of ICMP packets sent with the ping command. When you want to stop the ping command from sending packets, press CTLR + C keys at the same time. Apr 8, 2025 · Learn how to use ping command to test and verify the availability of a destination IP address and measure the communication latency. Sep 27, 2023 · 9. Figure 5: The results of pinging google. In this article, we will learn about Dec 9, 2024 · Yes, you can ping your own computer using “ping localhost” or “ping 127. Follow the instructions below to run ping in MacOS as a continuous test: Step 1: Open the terminal. Open Command Prompt. a round-trip time, a time to send an ICMP request packet and receive an ICMP reply packet. The ping command is a network utility used to test the reachability of a host on an Internet Protocol (IP) network. Jan 20, 2025 · Usually, such tools send multiple Ping commands and give out the average RTT time, better known as Latency. Nov 1, 2024 · Learn how to use the ping command to verify IP-level connectivity, troubleshoot network problems, and test name resolution. Here’s a detailed look at how to use various ping commands, from basic to advanced options. -a Resolve addresses to hostnames. The ping command is a standard command line request for most networks. 1” to test internal connectivity. Apr 26, 2021 · You can also use the ping 0 command to ping the localhost: # ping 0 Less well-known options. For example, the output of the ping command can easily be piped to a text file for later Jul 12, 2024 · The “ping” command is a powerful tool that allows users to check the status of their internet connection and diagnose network-related issues. 0. To check you have ping installed, fire up a terminal (macOS, Linux) or command prompt (Windows), and type “ping –help”. In this article, we will explore how to use the ping command in Linux to verify internet connectivity and troubleshoot potential problems. Oct 1, 2020 · 2. Switches are extra options to customize how the ping command functions. ping <hostname> -4 Jan 5, 2023 · The ping command can be run individually or automatically as part of a pre-organized task to keep track of network performance. com-t. An administrator can run multiple pings, record how they were used and place the output of ping commands into a text file for later review. 221 Mar 20, 2023 · The ping command has numerous options to control how pings operate and how results display. Since ping is used as a command-line utility, it is easy to use in a variety of scripts. -i TTL Time To Live. ping command to check the network connectivity of Ping is the cmd command to determine the delay between the computer and the server. Besides, the ping command allows you to check the functionality of websites and see if there are any connection issues. In the case of confirmation, you will discover the “latency” (i. The ping command calculates round-trip times and packet loss statistics, and displays a brief summary on completion. The options covered in this section are ones that you may find more generally useful. It's a simple way to verify that a computer can communicate with another computer or network device. Basic ping commands. May 18, 2017 · 除了檢測網路是否正常之外,ping 也可以與 arp 指令配合,掃瞄區域網路設備,產生 IP 與 MAC 卡號對應表。 Windows. com “-i” option: This option sets the interval between successive packets. In Windows, the ping test command works as follows: Go to the taskbar→Search option May 8, 2024 · T This page provides examples and syntax for using the UNIX ping command to troubleshoot networking issues in UNIX and Linux by sending ICMP ping-pong requests using the terminal application. To set the timeout for the ping command, use the -w flag in . Dec 20, 2023 · Ping is a command that sends a small packet of data to any network device and waits for its response. The ping command is a fundamental network tool used to test the reachability of a host on an Internet Protocol (IP) network. Mac users can easily run a ping test using the built-in Terminal application. Test a network connection - if successful, ping returns the ip address. Type: ping -c 10 google. 8 Common responses look similar to the output below: Key statistics to note are: Minimum/Average/Maximum: Latency over sent packets in milliseconds (ms) Packet Loss: Percentage of packets sent but not returned Dec 8, 2022 · Unlike Windows, ping command in macOS will continuously ping the host until you stop manually. Ping is typically used to determine if a remote host/computer is available on a network, but it can also be used to test network latency and perform basic network diagnostics. Conclusion. 在 Windows 中若要使用 ping 檢查網路,只要打開「命令提示字元」後輸入 ping 的指令加上主機的位址即可使用,若不加任何額外參數的話,ping 預設會送出 4 個 ICMP ECHO_REQUEST 封包,並統計 Dec 31, 2024 · Basic Syntax of the Ping Command. Wir erhalten auch eine normale Antwort. You can check whether name resolution is functioning by first pinging by hostname, and then pinging by IP Jun 20, 2023 · To test the local TCP/IP stack, use either the localhost hostname or a loopback address, enter the following command: # ping localhost # ping 127. But let’s break it down and see what it provides on a Windows computer. The command works by sending a signal - an Internet Control Message Protocol (ICMP) echo request - to a host server to check for two things: if the target host is available, and, if so, how long the response takes. Type the ping command. For example, if you are experiencing slow internet speeds or intermittent connectivity, you can use the ping command to determine where the problem lies. 221 Um das Ziel 10. The ping command sends ICMP At its most basic, ping can run with just a ping command and a destination, such as the name or address of a remote host. A ping network test transmits data packets to a specific IP address and either confirms or denies there is connectivity between IP-networked devices. Ping Syntax for Linux Aug 8, 2022 · Ping command options on Linux. There are quite a few command switches you can use with the ping command. Pinging Continuously. Share your thoughts with us via the comment form below. -a: use audible ping-c: <count> stop after <count> replies-D: print timestamps-f: flood ping-h: print help and exit . You’ll see the whole list as 「ping」は「ピング」と読みます。「ping」を使うと、「ping」を実行するコンピュータと、通信相手のネットワーク機器との間の経路に、異常があるかどうかを確認することができます。この記事では、Windowsのコマンドプロンプトで実行できるネットワークコマンド「ping」の使い方を説明します。 If you listen closely, that’s the sound of the ping command at work. g. You can ping: Feb 15, 2024 · Open Command Prompt. Jun 28, 2023 · The ping command is a Command Prompt command used to test the ability of the source computer to reach a specified destination computer. ping /a 10. Dans ce cas, assurez-vous que le nom de l’ordinateur que vous spécifiez peut être résolu via le fichier Hosts local, à l’aide de requêtes DNS (Domain Name System) ou par le biais de Feb 18, 2025 · How to Run a Ping Test on Mac. , the length of the response time) by performing a ping Apr 2, 2024 · The Linux ping command is a network utility used to test a host's reachability on an Internet Protocol (IP) network. However, there are some important distinctions to be aware of. Dec 31, 2024 · How to use Ping command? You have the ping utility on whatever operating system you have. Find out how ping works, how to check the ping value of any website, and how to use ping in troubleshooting and ping spoofing. The ping command in IPv6 operates similarly to how it does in IPv4. Here is an output of the ping command from a Windows PC: In the example above, we have pinged the IP address 10. If you want ping to constantly send a packet to your machine, use the -t option. One of my favorite uses of ping is to inform me when a remote server or network device has restarted. Apr 16, 2021 · The ping command, available on both the Windows and Linux CLI, is an implementation of the Internet Control Message Protocol (ICMP) as specified in RFC 792. Regardless of what operating system you use, all ping commands and arguments should be the same. On Windows, open the Command Prompt and on macOS and different Linux distros, open the Terminal. Originating from sonar Jul 8, 2023 · Ping Command Options. com). Jul 7, 2019 · Learn how to use the ping cmd to check the network connection and troubleshoot network issues. For example: ping -c 6 www. 8. Use info ping command to get the system user manual for ping command with all its parameters. Traceroute traces the route from source to destination and it helps identify any delay or bottleneck. Step 2: Run the ping command with the address of the target Jun 7, 2024 · When it comes to network troubleshooting and diagnostics, ping continues to be a valuable tool in IPv6 networks, just as it is in IPv4 networks. 7]. The ping command allows you to set a timeout (in seconds) for a long the ping command will actively send and receive packets. Syntax PING [options] destination_host Options -w timeout Timeout in milliseconds to wait for each reply, default=4000. Aug 21, 2023 · Learn how to use ping, a useful tool for testing network connectivity by sending packets of data and measuring the response time. com. You can see them down below. Learn how to use the ping command in Windows 10/11 to test the connectivity and latency of a remote device. The -c 10 flag limits the test to 10 pings. Wenn das Ping-Tool von den Geräten, die Sie pingen, keine Antwort erhält, werden Sie auch darüber informiert. So, there you have it – a simple, step-by-step guide on how to do a ping test in Windows 11. If you add the -t flag (type a hyphen, then t, at the end of your ping command) ping google. Different examples to use ping command in Linux 1. The ping command for IPv6 networks is typically ping6. The ping command sends an ICMP Echo Request datagram to an interface and expects an ICMP Echo Reply datagram in return. , 192. For example: ping 8. This command can be used when rebooting remote devices - start the command and restart the device. You may also use the ping 0 command to ping localhost: # ping 0. The following table outlines the basic syntax and usage ping is a computer network administration software utility used to test the reachability of a Windows Administration at the Command Line for Windows Vista Oct 25, 2024 · The ping command checks connectivity between devices by sending a request to a specific IP or domain and receiving a response. Press Command + Space, type Terminal, and press Enter to open the Terminal window. Follow these steps: Step 1: Open Terminal. The ping command lets you rapidly send packets in large quantities using the -f option. 168. You can use the ping. Apr 26, 2025 · The ping command in Linux, Windows and macOS is an invaluable tool for network troubleshooting, offering insights into connectivity, latency, and packet loss. See examples of ping command options, results, and tips for different scenarios. See the differences, options, and examples of the ping command in both systems. 221 zu pingen und die Route für 4 Hops aufzuzeichnen, geben Sie Folgendes ein: ping /r 4 10. facebook. Sep 8, 2021 · To ping test a networked device, type the command ping, space, the IP address of the device, and Enter. It helps simulate your server performance during a traffic spike or distributed denial-of-service (DDoS) attack. Ping is the most common program used to troubleshoot network connectivity problems. To ping test a website, type the command ping , space, the hostname , and Enter . For example, to set 7 seconds: ping -i 7 www. com . However, when these commands fail, ping can tell us a lot about what might be wrong. Analyze the Ping Test Results. With newer versions of the ping command and computers running on IPv6, you may get an IP address that looks like [fe80::51c1:5214:a18e:8dec%12] instead of [192. Ping works by sending Internet Control Message Protocol (ICMP) packets to the target host and waiting for a response. Ping is easy enough to use but also offers many switches for custom pings. There are small differences in the syntax of the ping command on the OSes. Basic UseThe basic use of the ping command is nearly identical Ping is a command available on , that sends data packets to a specific IP address, gauging the existence of connectivity between devices. The most fundamental ping command sends an ICMP echo request to a specified host to check Oct 4, 2023 · Si le test ping de l'adresse IP réussit, mais pas le test ping du nom de l'ordinateur, vous pouvez rencontrer un problème de résolution de nom. How to perform a network ping test in windows. e. Nov 18, 2022 · The syntax for the ping command is: $ ping [option] destination. the ping command will continue to send ping messages indefinitely. With these settings, you can quickly figure out and fix problems with the network. By default, Linux sends continuous pings. Check Name Resolution. The ping command completes when the program times out or on receipt of a SIGINT signal. PING. PathPing combines the functionality of both Ping and Traceroute commands to troubleshoot the network. See the syntax, parameters, examples, and output of the ping command for Windows Server. It’s generally given in milliseconds; half of this value is known as Ping. 10. -v TOS Type Of Service. To interrupt and display statistics, press Ctrl+Enter. A failed ping indicates a problem. By sending Internet Control Message Protocol (ICMP) echo requests to the target host and waiting for an echo reply, it measures the round-trip time for messages sent from the originating host to the destination. The ping command tests whether another host or router on the Internet is reachable. Analyze the results. Oct 19, 2021 · Windows: open Command Prompt; Mac and Linux: open Terminal; Below are a handful of different examples of the ping command. exe. Running a ping test on Windows 10 is like giving your internet connection a quick health check. Repeat if needed. Und so verwenden Sie Ping in seiner einfachsten Form. Let’s do a simple ping to the Google domain name to find the IP address. woitlvakpskgxrwnwvkjrcuwcnlfecqhrgtdviewlchbblzxytnqaowipoiymumaqwppvrchs