0% found this document useful (0 votes)
162 views15 pages

Hacking Internet With Arduino

The document discusses connecting an Arduino board to the internet using an Ethernet shield. It provides basic information about networking concepts like the Internet, World Wide Web, websites, clients and servers, IP addresses, ports, and DNS. It also includes a code example to set up an Arduino as a basic web server using the Ethernet library.

Uploaded by

Yo Gain Draw
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
162 views15 pages

Hacking Internet With Arduino

The document discusses connecting an Arduino board to the internet using an Ethernet shield. It provides basic information about networking concepts like the Internet, World Wide Web, websites, clients and servers, IP addresses, ports, and DNS. It also includes a code example to set up an Arduino as a basic web server using the Ethernet library.

Uploaded by

Yo Gain Draw
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

Hacking Internet with Arduino

your machine will now talk with internet

Internet

Huge network of computer networks. TCP/IP , www , Mail VOIP, IPTV Torrent Instant Messaging, Internet Forums, and Social Networking, Online Shopping History (1968) 1/3 , DNS , ICAN, IPV4, IPV6

World Wide Web


a global set of documents, images and other resources, logically interrelated by hyperlinks and referenced with Uniform Resource Identifiers (URIs)

NeXT Computer Interlinked Hypertext Documents URL LINKS

WEBSITES
Web pages containing content such as text, images, video,audio, etc web server, web client Hypertext Transfer Protocol Static Websites Dynamic Websites CMS

CLIENT / SERVER
Server - Serves Client - Served what is served? RESOURCES Data, CPUs, printers, and data storage devices are some examples of resources.

IP / MAC / PORT / DNS


IP address: Internet Protocol Address MAC address: Unique Address of network device PORT:Software layer to identify applications or processes DNS: Domain Name System to link the IP address with URL

Type the following code


<html> <HEAD><TiTle>It Works</Title></HEAD> <body> <H1>My First Heading</H1> <p>HELLO</p> </body> </html>:

Ethernet Shield

CONNECTS ARDUINO WITH INTERNET IN A MINUTE

Ethernet Shield

5V (from the Arduino Board) Ethernet Controller: W5100 16K buffer 10/100Mb Connection on SPI port

Ethernet Shield

Ethernet Shield

Server

#include <SPI.h> #include <Ethernet.h> byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; IPAddress ip(192,168,5, 177); EthernetServer server(8080); void setup() { Serial.begin(9600); while (!Serial) { ; } Ethernet.begin(mac, ip); server.begin(); Serial.print("server is at "); Serial.println(Ethernet.localIP()); }

SERVER

Acknowledge client Print the requests :Serial Print the blank page Hello World Print data Print sensor information Interface buttons

You might also like