Skip to Content
Making Things Talk
book

Making Things Talk

by Tom Igoe
September 2007
Beginner to intermediate
432 pages
17h 48m
English
O'Reilly Media, Inc.
Content preview from Making Things Talk
A MORE COMPLEX NETWORK 87
To use it, open up the command-line application on your
computer (Terminal on Mac OS X, the Command Prompt
on Windows, and xterm or similar on Linux/Unix). On Mac
OS X or Linux, type the following:
ping -c 10 127.0.0.1
On Windows, type this:
ping -n 10 127.0.0.1
This sends a message to address 127.0.0.1 and waits for a
reply. Every time it gets a reply, it tells you how long it took,
like this:
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.166 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.157 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.182 ms
After counting ten packets (that’s what the –c 10 on Mac
and -n 10 on Windows means), it stops and gives you a
summary like this:
--- 127.0.0.1 ping statistics ---
10 packets transmitted, 10 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.143/0.164/0.206/0.015 ms
It gives you a good picture not only of how many packets
got through, but also how long they took. It’s a useful
way to learn quickly if a given device on the Internet is
reachable or not, and how reliable the network is between
you and that device. Later on, you’ll be using devices that
have no physical interface that you can see activity on, so
you’ll need ping to know whether they’re working or not.
NOTE: 127.0.0.1 is a special address called the loopback address
or localhost address. Whenever you use it, the computer you’re ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Making Things Talk, 2nd Edition

Making Things Talk, 2nd Edition

Tom Igoe

Publisher Resources

ISBN: 9780596510510Catalog PageErrata