Where Can I Get a URL for IPTV? M3U Links and Xtream Codes Explained

  • Published:
  • Category: IPTV Guides
  • Reading time: 12 min read
On this page

You get your IPTV URL from your IPTV provider, in the welcome email or account dashboard they give you when you sign up or start a trial, and it comes as either an M3U playlist link or an Xtream Codes server address. There is no other reliable place to get one. The “free IPTV URL” lists that turn up in search results are collections of streams nobody is paying for, and they stop working within days. This post explains what each kind of URL looks like, how to find yours, how to build an M3U link from Xtream details when an app needs one, and what to do when a URL will not load. If you want to see a real one, the IPTV free trial from IPTV Canada puts a working link in your inbox within minutes.

how-to-get-iptv-url

1. What an IPTV URL Is

An IPTV URL is the web address your player app uses to reach your provider’s server and fetch your channel list, and it comes in three forms depending on how the provider runs its service. The address carries your identity, which is why it is personal to you and why a URL copied from a website plays nothing.

  • M3U URL. One long address that returns a playlist file. The player downloads it and reads every channel’s name, logo, group and stream link from it. It looks like http://server.example:8080/get.php?username=...&password=...&type=m3u_plus&output=ts.
  • Xtream Codes server URL. A short address, such as http://server.example:8080, that you enter with a username and password. The player then asks the server for channels, categories, movies, series and the guide one piece at a time. Most providers run this system, and most apps prefer it.
  • Portal URL. An address ending in something like /c/ that MAG boxes and some set-top boxes load as a whole TV interface. It identifies your box by its MAC address rather than a username.

If your provider gave you Xtream Codes, you already have everything an M3U link contains. Section 4 shows how the two convert.

2. Where the URL Actually Comes From

Your URL comes from the provider you subscribe to, and nowhere else. When you sign up for a plan or a trial, the provider creates an account on its server and sends you the details that point to it: a server URL with a username and password, an M3U link, or a portal address for a box.

Look in three places:

  1. The welcome email. Search your inbox and spam folder for “M3U”, “Xtream” or the provider’s name. The email usually contains the server URL, username and password, and often a ready-made M3U link and an EPG link as well.
  2. The account dashboard, if your provider has one. Many show the M3U link and the Xtream details on the subscription page so you can copy them from a phone.
  3. Support. If the email is gone or the plan was set up for a specific device, IPTV Support can resend the details or switch a MAC-registered plan to Xtream Codes for use in an app.

That is the complete list. A search engine, a forum or a video description will not have a URL that belongs to you.

3. Reading an M3U URL

An M3U URL is made of five parts, and understanding them is what lets you spot a typo when a playlist refuses to load.

PartExampleWhat it does
Protocolhttp:// or https://Must match what the provider sent. Swapping one for the other breaks the link
Server and portserver.example:8080The provider’s server. The number after the colon is the port, and leaving it out is the most common mistake
Script/get.phpThe page on the server that builds your playlist
Your identity?username=abc&password=xyzCase-sensitive. A capital letter typed in lowercase gives an empty playlist
Format&type=m3u_plus&output=tsm3u_plus includes logos, groups and guide IDs. output=ts or output=m3u8 sets the stream format

Because the link carries your username and password in plain view, it is a password. Do not paste it into a forum post when asking for help, and do not run it through an online “playlist checker” site, which is a common way logins get stolen.

4. Building an M3U URL From Xtream Codes

You can build an M3U URL from your Xtream Codes details in about a minute, which is useful when an app such as VLC or Kodi only accepts a playlist link. Every Xtream Codes server follows the same pattern.

  1. Take the server URL from your welcome email, including the port. Example: http://server.example:8080
  2. Add /get.php?username= followed by your username.
  3. Add &password= followed by your password.
  4. Add &type=m3u_plus&output=ts.

The result, all on one line with no spaces:

http://server.example:8080/get.php?username=abc&password=xyz&type=m3u_plus&output=ts

If a stream will not play on a particular device, change output=ts to output=m3u8. The ts format is MPEG-TS, which most TV apps handle well; m3u8 is HLS, which browsers, Apple devices and some smart TV apps prefer.

The reverse also works. If you were given only an M3U link, the server URL, username and password are sitting inside it, and you can type them into any Xtream Codes login screen.

5. The EPG URL, and Why the Guide Is Sometimes Empty

The EPG URL is a second address that supplies the TV guide, and you only need it when you log in with an M3U link, because an Xtream Codes login fetches the guide automatically. It follows the same pattern as the playlist link, with a different script name:

http://server.example:8080/xmltv.php?username=abc&password=xyz

Paste it into the app’s EPG or XMLTV field, then refresh the guide. If the guide stays empty after that, the cause is almost always one of three things: the EPG field was left blank, the device’s time zone is wrong (Canada spans six zones, and a guide set for Toronto is three hours off in Vancouver), or the guide simply has not finished downloading, which can take a few minutes on a large lineup.

6. Free M3U Lists Online: What They Are and Why They Fail

Free M3U lists published on GitHub, forums and “IPTV URL” websites are collections of stream links scraped from around the internet, and they fail for reasons that have nothing to do with your setup. Most of the streams are either public broadcaster feeds that were never meant for a playlist or unlicensed streams that get taken down.

What happens in practice:

  • Most links are already dead by the time you find the list, and the rest go dark within days.
  • Nothing is organized. No guide, no consistent groups, no logos, and channels that play the wrong content or nothing at all.
  • The apps that bundle these lists are the ones that carry malware, because a free list is the bait.
  • The legal exposure is entirely yours. Section 10 covers it.

There is a legitimate version of “free”: public broadcasters and some networks publish their own free streams, and a few players include them. That is a handful of channels, not a lineup. For a full lineup with a guide, the URL has to come from a provider, and a trial is the free way to test one.

7. Where the URL Goes in Each App

The URL goes into the “Add playlist” or “Login” screen of your player, and the field it belongs in depends on which kind of URL you have. Every app on our IPTV setup guides has one of these screens.

AppXtream CodesM3U URL
TiviMateAdd playlist > Xtream Codes: server address, username, passwordAdd playlist > Enter URL
IPTV Smarters ProLogin with Xtream Codes APILoad Your Playlist or File/URL > M3U URL
IPTVX (Apple)Xtream APIM3U
VLCNot supported; build the M3U link (section 4)Media > Open Network Stream
KodiNot supported directly; use the M3U linkPVR IPTV Simple Client > M3U play list URL, plus the EPG URL
Samsung and LG apps that activate onlineSome sites offer Xtream fieldsPaste the M3U link on the developer’s website with the app’s MAC address
MAG, Formuler, Dreamlink, BuzzTVSupported on Formuler and BuzzTVPortal URL instead, with your box MAC registered

Typing a long URL with a TV remote is where most errors happen. Paste it from your phone where the app allows, use the Fire TV or Google TV phone app’s keyboard, or plug a USB keyboard into a box.

8. Keeping Your URL Private

Your IPTV URL is a login, and it should be treated like one, because whoever has it can watch on your account and use up your connections. A few habits keep it yours:

  • Never post it publicly, even with the password partly hidden. The rest of the link identifies your server and account.
  • Skip online playlist checkers. They exist to harvest logins.
  • Store it in a password manager or a private note, so a factory reset or a new device takes a minute rather than a support ticket.
  • Watch the connection count. If your plan allows two streams and a third device shows “max connections reached”, someone else may be using your link. Changing the password through your provider fixes it.

9. When the URL Will Not Load

A URL that will not load is almost always a typing error, an expired plan or a wrong format, in that order. Work through the list before assuming the service is down:

  1. Compare the URL with the email character by character. Look for a missing port, http where it should be https, a space at the end, or a capital letter typed in lowercase.
  2. Confirm the plan is active. An expired trial returns an empty playlist rather than an error.
  3. Try the other format. Switch output=ts to output=m3u8, or try the Xtream Codes login instead of the M3U link in the same app.
  4. Test in VLC. If the M3U link plays in VLC on a computer, the account is fine and the TV app is the problem.
  5. Check the connection limit. If another device is already streaming, the new one may be refused.
  6. Ask. If the URL is right and the plan is active, IPTV Support can check whether the server address has changed.

If a link that worked yesterday fails today and nothing on your side changed, the provider’s server address may have moved. That happens, and it is why the account dashboard is worth bookmarking.

Using an IPTV URL from a provider you pay is legal in Canada, and so is every player that reads it; the legal question is whether the provider has authorization for the content behind the link. Streaming or redistributing programming without authorization from the rights holders can infringe the Copyright Act. This is general information, not legal advice.

That is the problem with free URL lists in one sentence. Nobody licensed the streams in them, and the person who loads the list is the one whose ISP receives the infringement notice under Canada’s notice-and-notice regime. Canadian courts have ordered ISPs to block unauthorized IPTV services and, more recently, unauthorized live sports streams, and the CRTC regulates licensed broadcasting distribution. A provider that can explain where its content comes from, and that answers support requests, is the one whose URL is worth typing in.

Frequently Asked Questions

Where do I find my IPTV M3U URL?

In the welcome email from your provider, or in your account dashboard if the provider has one. If you cannot find it, the provider’s support team can resend it.

Can I get a free IPTV URL?

Only as a trial from a provider. The free M3U lists published online are scraped, mostly dead and unlicensed, and they play for days at best. A trial gives you a real URL with a guide.

How do I convert Xtream Codes to an M3U URL?

Add /get.php?username=YOUR_USERNAME&password=YOUR_PASSWORD&type=m3u_plus&output=ts to your server URL, with no spaces. The same server, username and password work in both directions.

What is the EPG URL for IPTV?

The guide link, which follows the pattern http://server:port/xmltv.php?username=...&password=.... You need it only for M3U logins; Xtream Codes logins fetch the guide automatically.

Why does my IPTV URL work in VLC but not in my TV app?

The stream format usually. Change output=ts to output=m3u8 in the URL, or log in with Xtream Codes instead, which lets the app pick the format itself.

Conclusion

Your IPTV URL comes from your provider, and it is either an M3U link, an Xtream Codes server address or a portal address for a box. Anything found on a public list is not yours and will not last.

  • Look in the welcome email or account dashboard first.
  • Build an M3U link from Xtream Codes when an app needs one, and add the EPG link for the guide.
  • Treat the URL as a password.
  • When it will not load, check the typing, the plan and the format before anything else.

If you do not have a URL yet, an IPTV free trial gives you a real one to test on your own device, and an IPTV Subscription keeps it working after the trial ends.