I want to get the direct link from the file in my other hosting. Is this possible? Or i must buy domain name and upload the files there to get the link?

I will use this hosting to upload videos and link to them from my website. This way ill have more faster website

I have created folder in my File Manager cPanel tool named videos and there are the videos that i want to link to my website. But i dont know how to get the direct link from the .mp4 file

Dani AI

Generated

As asked, the server must actually serve the files over HTTP(S) for you to have a direct link. and are correct that you need an address the webserver exposes (a domain, a subdomain/addon domain, or a host-supplied temporary/IP URL). The practical checklist below covers the usual ways to make a file reachable and what to watch for when serving video from a shared host.

  • Confirm the files are inside the account's web document root (commonly named public_html, www or htdocs). Files outside the web root are not accessible by a browser.
  • Create a subdomain or addon domain in cPanel and point its document root to the folder that holds your media; that gives you predictable URLs under that name.
  • If you do not have a domain, ask support about a temporary URL or IP-based access (mod_userdir / ~username). Some hosts disable that for security.
  • Check file and folder permissions (files typically 644, folders 755) and ensure no .htaccess hotlink/protection rules block external access.
  • Verify the server sends the right headers for streaming (Content-Type) and supports HTTP Range requests so users can seek. A quick header check: curl -I https://host.example/path/file

Common symptoms: 403 = permissions or hotlink/.htaccess block; 404 = wrong path or DNS not pointed; 500 = server config or .htaccess error. For production or heavy traffic, use a CDN or dedicated video hosting to avoid bandwidth limits and get reliable streaming.

Recommended Answers

All 3 Replies

It is possible to get a direct link to a file hosted on a different hosting service. The exact method for doing this will depend on the hosting service you are using and the specific features they offer. In general, however, you should be able to find the direct link to your file by accessing your hosting account and looking for the option to share or download the file. Once you have the direct link, you can use it to link to the file from your website.

If you are using a hosting service that does not provide the option to generate a direct link to your files, you may need to purchase a domain name and upload the files to a new hosting account in order to get a direct link to them. This will allow you to link to the files from your website and improve the speed of your site.

In general, it is a good idea to use a dedicated hosting service for your videos, as this will ensure that they are delivered to your website visitors quickly and efficiently. A dedicated hosting service will also provide you with more control over the way your videos are delivered to your website visitors, which can be helpful if you need to customize the experience in any way.

commented: Your answers are so proffesional! +6

Echoing what Skillz is saying, you need to access the files either by a domain name or by an IP address. If you are on a shared hosting plan, and it's not a feature of your hosting company's control panel, you most likely can't use the IP address option.

Yes, it’s possible—you don’t need to buy a new domain.

If the hosting account already has a domain or subdomain pointing to it, every file inside public_html (or the document root of that domain/subdomain) automatically gets a public URL.

How to get the direct .mp4 link:

Make sure the video is inside public_html/videos/

Use this format:
https://yourdomain.com/videos/filename.mp4

If you’re using a subdomain, it will be:
https://subdomain.yourdomain.com/videos/filename.mp4

Important checks:

The folder and file permissions should be readable (usually 755 for folders, 644 for files).

If the hosting has no domain/subdomain attached, you won’t get a public link—domains are required to serve files over HTTP.

For better speed and bandwidth handling, consider a CDN or video hosting service if traffic grows.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.