top of page

locast2plex in docker

Jul 31, 2021
1 min read

We have other interests besides AWS and Flow Logs.

Recently, we found a cool way to get local TV stations streamed to our Plex machine. It lets us watch local TV, legally, without a cable subscription, and stream it to any Plex-compatible device.


This page does a great job of explaining the process:


However, when building this in docker container on a Synology NAS DS218+, we kept hitting errors and not being able to find a resolution.


locast2plex    | Getting user location...
locast2plex    | Getting location via IP Address.
locast2plex    | Error in function get_ip_location: [Errno -3] Try again
locast2plex    | Could not acertain location.  Exiting...
locast2plex exited with code 1

The solution is to switch to "host" mode networking.

  1. Edit your docker-compose.yml file in your preferred text editor

  2. add a line network_mode: "host"

  3. remove the ports section

  4. sudo docker-compose up

Here is the complete docker-compose.yml file that finally worked:


version: '2'
services:
  locast2plex:
    network_mode: "host"
    image: tgorg/locast2plex
    container_name: locast2plex
    restart: unless-stopped
    environment:
      - username=email@yahoo.com
      - 'password=abcdefg'
      - external_addy=192.168.1.999
      - external_port=6077
      - debug=yes
    volumes:
      - ./config.ini:/app/config/config.ini

 
 
 

2 Comments


Amirah Shaikh
Amirah Shaikh
Aug 18

The post explains an interesting way to use locast2plex with Docker to stream local television channels through a Plex setup without relying on a traditional cable subscription. One useful takeaway is how containerized tools can simplify the process of running specialized services while keeping the setup organized and portable. It also shows how practical open-source solutions can make everyday media consumption more flexible. I like the broader idea of finding efficient alternatives instead of adding unnecessary subscriptions or complicated hardware. The same principle can apply to online publishing, where a guest posting agency may help organize content outreach and placement without making the process unnecessarily complicated. Overall, the setup highlights how a little technical creativity can solve a practical problem.

Like

Bradley Sheppard
Bradley Sheppard
Mar 12

I read the post about running Locast2Plex in Docker and it was interesting to see how the guide explains connecting live TV streams to media servers through a container setup. The steps about configuring ports and linking it with Plex make the process clearer for beginners trying home media tools. Systems like this act as a tuner interface that passes streaming channels to media servers.  I remember exploring tools like this during a busy term when I had to use take my online course for me support just to manage my deadlines. It showed me how tech hobbies and studies can collide sometimes.

Like

pia@piasoftware.net

Arlington VA 22203

(804) 5050PIA

(804) 505-0742

  • Pia Software on LinkedIn
  • Pia Software on Twitter
  • PiaSoftware on Facebook

©2017 BY PIA SOFTWARE.  All rights reserved.

bottom of page