- TCP is a connection-based protocol that provides reliable data transmission between computers, while UDP sends independent data packets without guarantees of arrival.
- Every computer has a unique IP address and ports are used to map incoming data to specific processes, with port numbers ranging from 0 to 65,535. Common ports 0-1023 are reserved.
- The java.net package contains classes like InetAddress, ServerSocket, and Socket for networking tasks like getting IP addresses, creating servers, and establishing client connections.