Jump to content

Problem Using Live TV Remotely


Recommended Posts

PeterMacalister
Posted (edited)

I have recently added Emby to my Media Server Collection, for the sole purpose of using the Live TV function. I am mainly a Plex user and am very new to Emby. Plex requires all TV streams to transcode because it essentially records everything you watch in the aspect of Live TV, and they have also disabled sharing for the Live TV as well, I am sure as a way to increase the people that use their native TV functionality. I was initially having issues getting Emby to work on my server so I ended up moving it to my PC. I got Emby set up properly and got the Live TV matched up fine. I am able to watch it on my local network. But I have been setting up accounts for my remote users to watch from, and testing accordingly. When I try to play a channel remotely I get a Playback Error: 

Exception of type
'MediaBrowser.Common.Extensions.RemoteServiceUnavailable'
was thrown.

I have the ports properly forwarded. And I have pinned down the issue to being my VPN, as remote connection works fine with it off. My VPN does offer split tunneling, which I use to get Plex to work remotely and time I have my PC Plex server running and have had no issues with. I have set up split tunneling with the "EmbyServer.exe" program, similar to my Plex server, but it still will not work. My guess is a different program handles the streaming and/or Live TV functions of Emby and I need to exclude that as well, I just cannot figure out what program that is. 

The user that runs the server (me) is Peter and the user that was trying to stream from the server is recognized locally as Nick. Log is attached at 3:32 PM Central Time, appears to have been generated at 3:00 PM Central Time. I haven't done anything since this happened so this instance should be at the most recent part of the log.

Any help is greatly appreciated

     -PeterMacalister

embyserver.txt

Edited by PeterMacalister
Add server log and additional information as instructed in the auto reply.
Posted

Hello PeterMacalister,

** This is an auto reply **

Please wait for someone from staff support or our members to reply to you.

It's recommended to provide more info, as it explain in this thread:


Thank you.

Emby Team

Posted

HI, what is your live tv server? It looks like it is rejecting requests:

2024-06-03 14:54:04.692 Error HttpClient: Error getting response from http://host7/x_path1_x/x_path11_x
	*** Error Report ***
	Version: 4.8.8.0
	Command line: C:\Users\Ayden\AppData\Roaming\Emby-Server\system\EmbyServer.dll
	Operating system: Microsoft Windows 10.0.19045
	Framework: .NET 6.0.30
	OS/Process: x64/x64
	Runtime: C:/Users/Ayden/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
	Processor count: 12
	Data path: C:\Users\Ayden\AppData\Roaming\Emby-Server\programdata
	Application path: C:\Users\Ayden\AppData\Roaming\Emby-Server\system
	MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: An attempt was made to access a socket in a way forbidden by its access permissions. (thunderbolt-40gbps.com:80)
	 ---> System.Net.Http.HttpRequestException: An attempt was made to access a socket in a way forbidden by its access permissions. (thunderbolt-40gbps.com:80)
	 ---> System.Net.Sockets.SocketException (10013): An attempt was made to access a socket in a way forbidden by its access permissions.
	   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
	   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
	   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|277_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
	   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
	   --- End of inner exception stack trace ---
	   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
	   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
	   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
	   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
	   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
	   at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
	   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
	   at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
	   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
	   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
	   at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsyncInternal(HttpRequestOptions options, String httpMethod)
	   --- End of inner exception stack trace ---
	Source: 
	TargetSite: 
	No Stack Trace Available
	InnerException: System.Net.Http.HttpRequestException: An attempt was made to access a socket in a way forbidden by its access permissions. (thunderbolt-40gbps.com:80)
	Source: System.Net.Http
	TargetSite: Void MoveNext()

 

PeterMacalister
Posted (edited)

Thanks for the reply! 

I am not sure I understand what youre asking. I have an IPTV subscription with privateiptvaccess. The Emby server is hosted on my Windows PC. The m3u is generated from the IPTV provider and the xml comes from Emby's built in programming guides. 

I have been able to stream fine as long as I don't have my VPN on, so I am not sure where streams are being rejected. The issue is shown at the end of the log, a few times as I tried multiple times

Edited by PeterMacalister
Posted

That iptv server is sending back an error. We can’t really tell you why other than speculating based on the error response code.

i would check that the URL you entered is correct. You may also need to fiddle with the user agent and referrer options to try and disguise Emby server.

PeterMacalister
Posted

I don't understand. I don't see how the provider has anything to do with my specific issue. There are zero issues as long as my VPN is disabled. My issue is the 'MediaBrowser.Common.Extensions.RemoteServiceUnavailable' error I keep getting with it on. I need to know what I need to exclude from the VPN to make it work, the VPN needs to be on. I am not sure we are looking at the same error. 

Aside from that. I am not sure how or where to fiddle with the user agent and referrer options, is this an Emby setting? And also the m3u is downloaded, not URL, and as I mentioned previously, the streams work fine as I have tested multiple times.

Posted

OK then it could be that the vpn is interfering with the request in such a way that either causes the provider to reject it or the vpn is actually sending the error back.

PeterMacalister
Posted

Okay, that is what I have suspected is the issue. I can make it so that certain programs don't get touched by the VPN. I have already tried excluding "EmbyServer.exe" I am wondering if there is a different program responsible for handling the Live TV that I would need to exclude from the VPN tunnel.

PeterMacalister
Posted

What on a Windows computer is specifically responsible for grabbing the content from the provider? I am sure whatever is trying to access the m3u from the website is what is getting hung up by the VPN. 

The only other thing I can think that contradicts that is the fact the error says 'RemoteServiceUnavailable' which leads me to believe something on the Emby side is what is getting stopped by the VPN

Lessaj
Posted

I believe ffmpeg would be making the connection to the iptv provider since it would need to open a connection to get the stream data to transcode the stream, however I'm unfamiliar with the live tv aspects of emby beyond what I've read from others as I don't use this feature so take that with a grain of salt.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...