WEBVTT

00:00:00.000 --> 00:00:06.000
What does the number after localhost mean in a preview address?

00:00:06.000 --> 00:00:13.000
A port helps direct a connection to the appropriate service on a device.

00:00:13.000 --> 00:00:18.000
Read the host and port together.
6 port basics.

00:00:18.000 --> 00:00:30.000
The host identifies the destination
A hostname or IP address identifies where the connection is going.
Hostname · IP address · Destination device

00:00:30.000 --> 00:00:42.000
The port identifies a service
Different network services can listen on different ports.
Service port · Listening application · Intended connection

00:00:42.000 --> 00:00:54.000
A URL can show the port
It appears after the host, separated by a colon.
Host name · Colon separator · Port number

00:00:54.000 --> 00:01:06.000
Web schemes have default ports
HTTP commonly uses 80; HTTPS commonly uses 443.
HTTP 80 · HTTPS 443 · Scheme defaults

00:01:06.000 --> 00:01:18.000
Local previews often use others
A development server can listen on its configured local port.
Preview application · Configured port · Running service

00:01:18.000 --> 00:01:30.000
Check the exact preview address
A wrong port can reach another service or fail to connect.
Correct host · Correct port · Expected application

00:01:30.000 --> 00:01:39.000
Your checklist
The host identifies the destination · The port identifies a service · A URL can show the port · Web schemes have default ports · Local previews often use others · Check the exact preview address

00:01:39.000 --> 00:01:47.000
Use the port supplied for the intended service.
jerseyweb.je
