beto-rodriguez / LiveCharts2

Simple, flexible, interactive & powerful charts, maps and gauges for .Net, LiveCharts2 can now practically run everywhere Maui, Uno Platform, Blazor-wasm, WPF, WinForms, Xamarin, Avalonia, WinUI, UWP.
https://livecharts.dev
MIT License
4.39k stars 574 forks source link

The LiveChart for Uno Wasm is not rendering on a hosted machine where the machine is accessed using IPAddress. #1569

Open tomchoondal opened 3 months ago

tomchoondal commented 3 months ago

Describe the bug The LiveChart for Uno Wasm is rendering on locally in web browser. When hosting in IIS it is rendering in localhost:50 (where 50 is port number) for eg http://localhost:50/. But not rendering on when trying using IP address with port number for eg: http://192.168.1.103:50/

To Reproduce Steps to reproduce the behavior: I am attaching the sample code.

Expected behavior The chart should be accessble via ip address as well so that the app can be hosted in a VM and app can be accessed using ip address when computers in same network.

Screenshots Screenshot 1: The chart is rendering on localhost:50 image

Screenshot 2: The chart is not rendering on http://192.168.1.103:50/ image

Browser: Edge Uno version 5.3.18.22

Additional context I am an employee of Baker Hughes, and we are working a data visualization app using uno platform. we need to host this application in VM's cannot host in a server or cloud because the rig machines will not have an active internet. We will host this app in a VM using IIS. And any users connected to baker network can access the app using hosted machine's IP Address. This is the configuration flow of the app. We can only proceed further if we get a clarity on above mentioned issue. UnoSampleCharApp[1].zip

Youssef1313 commented 3 months ago

@tomchoondal If you open the browser's console, do you see any errors/warnings?

tomchoondal commented 3 months ago

Yes @Youssef1313 I will share the console errors I am getting in both cases Case1: using localhost image

Case 2: using ipaddress of machine image

ebariche commented 3 months ago

@tomchoondal, There is a bug in SKXamlCanvas when the browser is not in a secure context. We'll work with MS to resolve it. Switch to HTTPS for now.

tomchoondal commented 3 months ago

@Youssef1313 and @ebariche Thank you for your valuable comments. The issue is solved when hosted in https format.