Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Arduino Networking

You're reading from   Arduino Networking Connect your projects to the Web using the Arduino Ethernet library

Arrow left icon
Product type Paperback
Published in Aug 2014
Publisher
ISBN-13 9781783986866
Length 118 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Marco Schwartz Marco Schwartz
Author Profile Icon Marco Schwartz
Marco Schwartz
Arrow right icon
View More author details
Toc

Sending data to a server

It is now time to build the sketch for our first application using the Arduino Ethernet shield. But first, we need one more piece of data: the local IP address of your computer. Inside the Arduino sketch, we are going to specify where the Arduino Ethernet shield has to send the data.

Finding your IP address is easy, but it depends on your operating system. If you are using OS X, you can find your IP address inside Network Preferences.

Sending data to a server

If you are using Windows, you will find the information you need under the Network Settings in your Control Panel:

Sending data to a server

Another way under Windows is to go to Start, then Run, and type cmd. Then, inside the console, type ipconfig and hit Enter. Your computer's IP address will be displayed.

If you are using Linux or OS X, you can simply go to a terminal and type:

ifconfig

This command should print your IP address inside the terminal window. It will in general be something like eth0 or en0. This is what I had on my machine:

en0: flags=8863...
You have been reading a chapter from
Arduino Networking
Published in: Aug 2014
Publisher:
ISBN-13: 9781783986866
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime