duduyoyo / WebSocket4OPC

Liberate and access plant data anywhere, any way!
MIT License
38 stars 6 forks source link

Does not work if Default site is not running on 80 port #11

Closed PratikVpel closed 5 months ago

PratikVpel commented 5 months ago

I do not have 80 port available due to some other service running. I tried to connect use OPC on 8081 port but it does not work like that. There should be an option

duduyoyo commented 5 months ago

My app has no idea to default port to use. It simply binds to default web site with any port. What you can do, first browse default web site and make sure you can open it properly in browser as below (your url should be like http://localhost:8081). Then change that url to http://localhost:8081/OPC/websocket.html. If it can display properly, you need configure your firewall to let port 8081 open to remote request. Cheers!

image image

PratikVpel commented 5 months ago

Hi, Thank you for the response. Inititially it was not working on another port. But, after the restart it started working again