WEBVTT

00:00:00.000 --> 00:00:06.000
Why does a localhost preview not open for someone else?

00:00:06.000 --> 00:00:13.000
Localhost refers back to the device making the request.

00:00:13.000 --> 00:00:18.000
Know where the preview is running.
6 local-preview basics.

00:00:18.000 --> 00:00:30.000
Localhost means this device
A loopback address points the request back to the local computer.
Current device · Local request · Loopback address

00:00:30.000 --> 00:00:42.000
127.0.0.1 is a common example
It is an IPv4 loopback address used for local services.
IPv4 loopback · Local computer · Local service

00:00:42.000 --> 00:00:54.000
A local server must be running
The preview needs the development service to be available.
Running preview service · Local application · Working request

00:00:54.000 --> 00:01:06.000
The port selects the service
A number after the hostname can identify the local service port.
Local hostname · Port number · Correct service

00:01:06.000 --> 00:01:18.000
Another device has its own local
Its localhost refers to that device, not your computer.
Different device · Different local service · No shared address

00:01:18.000 --> 00:01:30.000
Use an appropriate shared preview
Ask for a hosted preview or another agreed review method.
Shared preview URL · Suitable access · Actual production status

00:01:30.000 --> 00:01:39.000
Your checklist
Localhost means this device · 127.0.0.1 is a common example · A local server must be running · The port selects the service · Another device has its own local · Use an appropriate shared preview

00:01:39.000 --> 00:01:47.000
Use the correct shared preview when someone else needs to review.
jerseyweb.je
