Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tomchoondal opened this issue Aug 16, 2024 · 4 comments
Labels
has workaround requires external features We can not fix this for now, we need a feature that is out of this library.

Comments

@tomchoondal
Copy link

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

@tomchoondal tomchoondal changed the title The LiveChart for Uno Wasm is rendering on locally in webbrowser. But 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 ipaddres with port number for eg: http://192.168.1.103:50/ The LiveChart for Uno Wasm is not rendering on a hosted machine where the machine is accessed using IPAddress. Aug 16, 2024
@Youssef1313
Copy link

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

@tomchoondal
Copy link
Author

tomchoondal commented Aug 21, 2024

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
Copy link

ebariche commented Aug 23, 2024

@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
Copy link
Author

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

@beto-rodriguez beto-rodriguez added requires external features We can not fix this for now, we need a feature that is out of this library. has workaround labels Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has workaround requires external features We can not fix this for now, we need a feature that is out of this library.
Projects
None yet
Development

No branches or pull requests

4 participants