Course Info / Syllabus

Labs

Lecture Topics

Exam Reviews

Source Code & Other Resources


Operating Systems Concepts & Design

Ports vs Sockets vs URLs

Summary by ChatGPT

Here’s a side-by-side comparison of sockets vs ports vs URLs, written in a way that fits networking fundamentals:


🔌 Sockets vs Ports vs URLs — Comparison Table

Concept What It Is Example Purpose / When It’s Used
Port A number on a device used to identify a specific network service or application. 80 (HTTP), 22 (SSH), 443 (HTTPS) Allows multiple network services to run on one IP address. Helps the OS route incoming traffic to the correct program.
Socket A combination of IP address + port (and optionally protocol like TCP/UDP). A socket represents one endpoint in a network connection. 192.168.1.10:5000 Identifies a specific communication channel. The server listens on a socket; the client connects to it.
URL A human-readable resource locator used on the web. Includes protocol, domain, path, port (optional), etc. https://example.com:8080/index.html Lets users find resources on the web. Maps domain names to IPs and optionally specifies ports and paths.

🔍 Expanded Explanation

Port

Socket

URL


🎯 How They Relate


Additional Resources