2. Why learn Networking?
Have you heard of the term Internet of Things?
IoT refers to devices connected to the internet like your smart speakers, watches,
fridges, lights, handphones, computers, etc
3. Why learn Networking?
● The total installed amount of
Internet of Things (IoT)
connected devices is projected
to amount to 75.44 billion
worldwide by 2025, a 5-fold
increase since 2015
(https://www.statista.com/statistics/471264/iot-number-of-connected-devices-worldwide/)
4. Why learn Cyber Security?
● At the same time, cyber threats
are proliferating at an
alarmingly high rate
● Attacks have increased 6-fold
since 2017 and you could have
been a victim unknowingly
(https://www.varonis.com/blog/cybersecurity-statistics/)
5. Full Code - What we will be making
import socket
sock = socket.socket(socket.AF_INET,
socket.SOCK_DGRAM)
IP = "127.0.0.1"
PORT = 5005
sock.bind((IP, PORT))
while True:
data, addr = sock.recvfrom(1024)
print ("received message: ", data)
SERVER.py
6. TCP
In TCP, instead of individual couriers in UDP, a
continuous stream of ‘numbered courier potatoes’ will go
back and forth the Client’s and Server’s doors.
Since it is a stream, both sides have to keep their ‘doors’
open, unlike a one-time delivery in UDP
SERVER
4 3 2 1
7. Let’s Hack #1 - What you should see
You will get a list of IP
addresses in your
network. Find a
target!
IP Address