The Internet

The Internet is a global network that connects computers all around the world. It consists of:

The World Wide Web (WWW) is what most people think of when they hear "the Internet" - but it's actually just one part of the Internet! The WWW is all the websites and web applications that we can access through our web browsers.

Some things on the WWW:

Some things that use the Internet but are NOT part of the WWW:

The WWW is one part of the larger Internet ecosystem.

URLs

URL = Uniform Resource Locator

We will use the URL diagram below as a reference point for the rest of this section.

Client-Server Model

A client server model is a way of organizing software so that one program (the client) requests services from another program (the server).

Client = Browser or a program that requests data from a server (e.g. an "app" on your phone)

Server = A program that provides data to a client.

The term "server" is used in two main ways:

  1. As software: A web server is a program that listens for incoming requests and handles them - just like any other program on a computer.

  2. As hardware: A "server" can be the actual physical computer that runs server software. While there are specialized computers built specifically to be servers (like the ones in data centers), technically any computer can act as a server - even your laptop could be one!

HTTP and HTTPS

HTTP (Hypertext Transfer Protocol) and HTTPS (HTTP Secure) are the main protocols used for communication on the World Wide Web. They define how messages are formatted and transmitted between clients and servers.

When you visit a website:

  1. Your browser (the client) sends a web request to get information
  2. The web server processes this request
  3. The server sends back a web response with the requested information

The only difference between HTTP and HTTPS is that HTTPS encrypts the data being sent, making it secure from tampering or snooping.

Want to see HTTP in action? Try this:

  1. Press F12 to open your browser's developer tools
  2. Click the "Network" tab
  3. Refresh this page

You'll see all the requests and responses between your browser and our web server. Each entry shows:

Click any entry to see detailed information about that request and response.

TCP/IP

TCP/IP is the fundamental protocol suite of the Internet, consisting of two main parts:

TCP (Transmission Control Protocol)

Handles reliable delivery of data:

IP (Internet Protocol)

Handles addressing and routing:

Every device on the Internet needs an IP address:

Try checking your computer's IP addresses using the commands below:

## BASH
ifconfig

## PowerShell
ipconfig

You'll see both IPv4 (like 192.168.1.1) and newer IPv6 (like fe80::215:5dff:fe15:fcaf) addresses.

When you make a request to a website, your IP request is included in the request packet. This lets the server know where to send the response.

Domain Name System (DNS)

DNS converts domain names into IP addresses:

google.com172.217.14.206

DNS exists because:

The ping command is used to check the connection to a server. It sends a series of packets to the server and measures the time it takes for them to return.

To stop pinging, press Ctrl+C.

Try pinging Google's IP address and paste it into your browser's address bar.

## BASH / PowerShell
ping google.com

Putting it All Together: A Round Trip

When you visit a website, here's what happens:

  1. Your browser sends a request to a web server
  2. The request is broken into packets and sent across the Internet
  3. The web server receives the packets and prepares a response
  4. The response is broken into packets and sent back across the Internet
  5. Your browser receives and reassembles the packets, then displays the page

The Internet is decentralized - packets can take different routes to their destination. If some network connections fail, packets will be automatically routed through working connections instead.

Demo: What do Websites Look Like from the Back End?

In this demo, we'll look at a real web server in action:

This will give you a behind-the-scenes look at how websites actually run.

http://174.138.52.187:81

VPN, Proxy, and Private Browsing

Private Browsing

Convenience feature in browsers to clear cookies and cache, not save history, etc.

Meant to give some degree of privacy to users sharing a single device.

Does not hide the origin of requests.

Proxy

A proxy server is a server that acts as an intermediary for requests from clients seeking resources from other servers.

Meant to hide the origin of requests.

When I visit a website through a proxy, the request will go to the proxy server first, and then to the website.

VPN

VPN = Virtual Private Network

You are "inside" a private network, and the VPN creates a secure tunnel to the Internet.

Meant to provide access to a private network (private IP addresses). E.g. - none of you can "talk" to my lab machine.

When I VPN to Ivy Tech then visit a website, the request will go to the Ivy Tech network first, and then to the website.

Password Management

Practical Password Management Tips: