Jump to content

How to specify what subnets are local for transcoding over vpn


Recommended Posts

grid-hibiscus-pancake
Posted

Thank you for such a fast fix, I will check in latest dev/beta build.

 

I tried looking into the latest commit, but I am not quite well versed in C#...

What settings do you accept?

Could you tell me if any of below should work?

Can you add example to the dialog itself?

 

  • IP Addresses ex. 192.168.1.1, 192.168.1.2 (comma separated)?
  • Netmasks(comma separated) ex. 192.168.1.1/24 ? or 192.168.1.1/32?
  • Netmask 192.168.1.1/255.255.255.0 ?

Thank you for clarifying this.

 

hooray4me
Posted

I've got this example resolved for the next release, thanks.

When do you think the next release will be ready?

Posted

Sorry we don't offer ETAs but it should be consistent with our patterns.

grid-hibiscus-pancake
Posted

Luke, did your see my post #26? Could please comment on that?

Thank you so much.

 

Sent from my Pixel XL using Tapatalk

Posted

Those should work yes and I can add an example.

  • Like 1
  • 1 month later...
grid-hibiscus-pancake
Posted

Hi @@Luke

I think I found a strange little bug in the latest stable version of emby 

Version 3.3.1.0

 

 

If Lan Networks is set to something ex. 

192.168.1.1/255.255.255.0

Then both following URLS will fail to load with 500

http://serverip:8096/web/serversecurity.html
http://serverurl:8096/web/userprofiles.html

Server log

2018-04-29 11:27:13.428 Error HttpServer: Error processing request
	*** Error Report ***
	Version: 3.3.1.0
	Command line: /system/EmbyServer.dll -programdata /config -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
	Operating system: Unix 4.9.0.6
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: True
	Processor count: 4
	Program data path: /config
	Application directory: /system
	System.FormatException: Input string was not in a correct format.
	   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
	   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
	   at Emby.Server.Implementations.Networking.IpAddresses.GetSubnetAndMaskFromCidr(String cidr)
	   at Emby.Server.Implementations.Networking.NetworkManager.IsInConfiguredLocalSubnets(IPAddress address, String[] subnets)
	   at Emby.Server.Implementations.Networking.NetworkManager.IsInLocalNetworkInternal(String endpoint, Boolean resolveHost)
	   at Emby.Server.Implementations.Library.UserManager.GetUserDto(User user, String remoteEndPoint)
	   at System.Linq.Enumerable.SelectIPartitionIterator`2.PreallocatingToArray(Int32 count)
	   at System.Linq.Enumerable.SelectIPartitionIterator`2.ToArray()
	   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
	   at MediaBrowser.Api.UserService.Get(GetUsers request, Boolean filterByDevice)
	   at Emby.Server.Implementations.Services.ServiceExecGeneral.<Execute>d__2.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at Emby.Server.Implementations.Services.ServiceHandler.<ProcessRequestAsync>d__15.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at Emby.Server.Implementations.HttpServer.HttpListenerHost.<RequestHandler>d__74.MoveNext()
	System.FormatException
	   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
	   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
	   at Emby.Server.Implementations.Networking.IpAddresses.GetSubnetAndMaskFromCidr(String cidr)
	   at Emby.Server.Implementations.Networking.NetworkManager.IsInConfiguredLocalSubnets(IPAddress address, String[] subnets)
	   at Emby.Server.Implementations.Networking.NetworkManager.IsInLocalNetworkInternal(String endpoint, Boolean resolveHost)
	   at Emby.Server.Implementations.Library.UserManager.GetUserDto(User user, String remoteEndPoint)
	   at System.Linq.Enumerable.SelectIPartitionIterator`2.PreallocatingToArray(Int32 count)
	   at System.Linq.Enumerable.SelectIPartitionIterator`2.ToArray()
	   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
	   at MediaBrowser.Api.UserService.Get(GetUsers request, Boolean filterByDevice)
	   at Emby.Server.Implementations.Services.ServiceExecGeneral.<Execute>d__2.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at Emby.Server.Implementations.Services.ServiceHandler.<ProcessRequestAsync>d__15.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at Emby.Server.Implementations.HttpServer.HttpListenerHost.<RequestHandler>d__74.MoveNext()
	
2018-04-29 11:27:13.430 Info HttpServer: HTTP Response 500 to 192.168.1.12. Time: 49ms. http://broadcast.xxxx.net:8096/emby/users 

 

Posted

Please try again with the next release of Emby Server, thanks.

grid-hibiscus-pancake
Posted

Ok I will and report back.

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...