1. Setup your IP camera

Make sure you have your IP camera connected to your network, set a static IP for your IP Camera. Also note the IP & port of running service.

Here we have our feed accessible in (opens in a new tab).

2. Create a reserved subdomain (Optional)

If you want to use your own domain instead of *.loclx.io, refer to create a custom domain.

For accessing our camera feed, lets reserve a specific domain for it.

loclx domain reserve --subdomain ipcamera --region ap
loclx domain reserve --subdomain ipcamera --region ap
 Reserving a Domain...
subdomain is reserved -> ipcamera.ap.loclx.io

LocalXpose has provided us with a reserved domain "ipcamera.ap.loclx.io".

3. Expose your IP Camera

After we have reserved a subdomain for our IP Camera, we can now go ahead and expose our camera's web feed.

loclx tunnel http --reserved-domain ipcamera.ap.loclx.io --to

Most IP camera come with inbuilt authentication system, if your camera doesn't you can use LocalXpose's basic authentication feature by passing an option "--basic-auth user:pass" like following.

loclx tunnel http --reserved-domain ipcamera.ap.loclx.io --to --basic-auth user:pass
 Creating HTTP tunnel...
Tunneling http://ipcamera.ap.loclx.io -->
Tunneling https://ipcamera.ap.loclx.io -->

4. Visit your Camera Feed

Next, we can use the subdomain "https://ipcamera.ap.loclx.io (opens in a new tab)" to see the camera feed.

If you are having trouble with playback try reducing stream quality (video bitrate). For improving latency use the LocalXpose region close to you with option "--region [us|ap|eu]".

© xLab 2023. All Rights Reserved