Address, domain and HTTPS
Your customers' players connect to your own machine on self-host. This page shows where to find that address, how customers outside your network reach it, and how to use your own domain with HTTPS. Follow these steps to set up the address your customers use.
Your customer address
Right-click the M3UTool icon and look at Customers connect to, or run dontv info. That address is the server your customers put into their players.
- At home: M3UTool uses your computer's address on your network, for example
http://192.168.1.20, so TVs and phones in the same house can connect right away. - The port: M3UTool uses port 80. When port 80 was already taken on the first start, it uses 8080, and the address shows it:
http://192.168.1.20:8080. - In the editor: The M3U links and TV guide links the editor shows for each customer use this address too. More in Customer links.
- In a browser: Opening the address shows your web player.
Your customers sign in with the server address plus their username and password, in any player that supports Xtream. More in Use other players.
Customers outside your network
Customers who watch from elsewhere need to reach your machine from the internet. You have two ways:
- A server: Run M3UTool on a server with a public address. Its customer address works from anywhere.
- Port forwarding: On your router, forward the customer port (80, or the one
dontv infoshows) to the computer that runs M3UTool. For HTTPS with your own domain, forward port 443 too.
Use your own domain with HTTPS
With your own domain, your customers connect to a name such as tv.example.com instead of a number, and HTTPS is set up by itself.
- Create a DNS record: At your DNS provider, create an A record for your domain that points at the public address of the machine that runs M3UTool. With Cloudflare, set the record to DNS only (grey cloud).
- Open the install folder: Right-click the M3UTool icon and click Open install folder. On Linux, the folder is
~/.local/share/dontv. - Set your domain: Open the file
.envin a text editor, change the lineDOMAIN=localhostto your domain, for exampleDOMAIN=tv.example.com, and save the file. - Apply the change: Right-click the M3UTool icon and click Update. On Linux, run
dontv update. - Check the address: Customers connect to now shows
http://tv.example.com. Once the certificate is issued,https://tv.example.comworks too.
http://tv.example.com:8081. If the editor does not load on your own computer after this, run dontv link and open the link it shows with localhost in place of your domain, for example http://localhost:8081/auth/selfhost?t=….Change the ports
M3UTool picks its ports on the first start and keeps them after that. To change one, edit the file .env in the install folder.
| Setting in .env | Used for | Default |
|---|---|---|
HTTP_PORT | Your customers' players over http | 80 |
HTTPS_PORT | Your customers' players over https, with your own domain | 443 |
EDITOR_PORT | The editor | 8081 |
- Open the install folder: Right-click the M3UTool icon and click Open install folder, or go to
~/.local/share/dontvon Linux. - Change the port: Open
.envin a text editor, change the number afterHTTP_PORT=,HTTPS_PORT=orEDITOR_PORT=, and save the file. - Apply the change: Right-click the M3UTool icon and click Update, or run
dontv update.
http://192.168.1.20:8080. Customers who already use the old address need the new one.Keep the editor to yourself
The editor port asks for your M3UTool password (and your 2-step code, if your account has one). A sign-in link also gets in, and links only come from the M3UTool program on your machine. Someone who only knows the address sees the sign-in page and nothing more.
- At home: Do not forward the editor port on your router.
- On a server: Set
EDITOR_PORT=127.0.0.1:8081so the editor only answers on the server itself, and reach it through an SSH tunnel. The steps are in Install on Linux.
The customer address only serves your customers' players and the web player, with the same sign-in checks and device limits as on editor.dontv.shop.