emin Posted September 6, 2023 Share Posted September 6, 2023 I decided to use WebSocket in my application running on IIS as HyperServer. I set the WebSocket option to True in both MainModule and ServerModule. I set the Aux_port to 8081 in ServerModule. Then, in the hyperserver.cfg file, I set 'enabled=true' and 'aux_port=8081' in the websockets parameters. However, messages are not being sent. It works in standalone mode. I tried to follow the documentation. What might be missing? Quote Link to comment Share on other sites More sharing options...
emin Posted September 6, 2023 Author Share Posted September 6, 2023 Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted September 6, 2023 Share Posted September 6, 2023 If you find out let us know, because at Quote Link to comment Share on other sites More sharing options...
emin Posted September 6, 2023 Author Share Posted September 6, 2023 Not yet. I'have tried to many approach according to unigui documantations even checked topics on forum but didn't work. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 6, 2023 Administrators Share Posted September 6, 2023 Hi, Since you are using an Aux Port you must make sure your firewall allows access to this port. Quote Link to comment Share on other sites More sharing options...
emin Posted September 6, 2023 Author Share Posted September 6, 2023 I have already add the port to inbound rules I h Quote Link to comment Share on other sites More sharing options...
emin Posted September 6, 2023 Author Share Posted September 6, 2023 Sory my bad. I added 81 instead of 8081. I changed port but didn't work Quote Link to comment Share on other sites More sharing options...
emin Posted September 6, 2023 Author Share Posted September 6, 2023 Let assume I'll use redirect url instead of Aux Port. My app url is https://destek.mpsyazilim.com/pilclawtest/pilclaw.dll so what should be the redirect url on the same server Quote Link to comment Share on other sites More sharing options...
irigsoft Posted September 6, 2023 Share Posted September 6, 2023 4 minutes ago, emin said: Sory my bad. I added 81 instead of 8081. I changed port but didn't work this is on client side ? Quote Link to comment Share on other sites More sharing options...
emin Posted September 6, 2023 Author Share Posted September 6, 2023 No, on server Advance Server Inbound Rules Quote Link to comment Share on other sites More sharing options...
irigsoft Posted September 6, 2023 Share Posted September 6, 2023 5 minutes ago, emin said: No, on server Advance Server Inbound Rules try to enable this port on client side. Quote Link to comment Share on other sites More sharing options...
emin Posted September 6, 2023 Author Share Posted September 6, 2023 I already set on Server Module Aux Port=8081. Is there another setting Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 6, 2023 Administrators Share Posted September 6, 2023 I will check and let you know. Quote Link to comment Share on other sites More sharing options...
emin Posted September 6, 2023 Author Share Posted September 6, 2023 Thank you. You can find servermodule parameters attached Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 6, 2023 Administrators Share Posted September 6, 2023 [hyper_server] server_direct_url= Please populate above parameter. For example: server_direct_url=http://localhost/webapp/hyper_server.dll http://www.unigui.com/doc/online_help/index.html?configuring-the-cluster.htm Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 6, 2023 Administrators Share Posted September 6, 2023 Also this: http://www.unigui.com/doc/online_help/index.html?standard-hyperserver-cluster.htm Quote Link to comment Share on other sites More sharing options...
emin Posted September 6, 2023 Author Share Posted September 6, 2023 I checked according to the document. But didn't work. What's wrong This is cfg file: server_direct_url=http://localhost/pilclaw/pilclaw.dll token=itscpy230822065235123 [websockets] enabled=1 aux_port=0 This is the log file of node zero pilclaw.exe: 00000190: 19:21:07 []:>--------------------------------------------------------------< pilclaw.exe: 00000190: 19:21:07 [TUniServerModule]:Server First Init. pilclaw.exe: 00000190: 19:21:07 [TUniServerModule]:Start Path = C:\_uygulamalar\PilclawTest\ pilclaw.exe: 00000190: 19:21:07 [TUniGUISessionManager]:Cache erase job created, Folder count: [1] pilclaw.exe: 00000190: 19:21:07 [TUniHyperServer]:RelayServer Url = http://localhost/pilclaw/pilclaw.dll pilclaw.exe: 00000190: 19:21:07 [TUniHyperServer]:RelayServer Token = itsc... pilclaw.exe: 00000190: 19:21:07 [TUniHyperServer]:Node Application Alias set to: "pilclaw_exe" pilclaw.exe: 00000190: 19:21:07 [TUniServerModule]:Node Id = 0 pilclaw.exe: 00000190: 19:21:07 [TUniServerModule]:Node MaxSessions = 250 pilclaw.exe: 00000190: 19:21:07 [TUniServerModule]:Starting HTTP Server on Port: 16452... pilclaw.exe: 00000190: 19:21:07 [TUniServerModule]:HTTP Server Started on Port: 16452 pilclaw.exe: 00001660: 19:21:16 [TUniWebSocketStack.Execute()]:TUniHTTPRequest.SendRequest(): HTTP/1.1 404 Not Found pilclaw.exe: 00001660: 19:21:23 [TUniWebSocketStack.Execute()]:TUniHTTPRequest.SendRequest(): HTTP/1.1 404 Not Found Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 6, 2023 Administrators Share Posted September 6, 2023 If you are deploying your app using HyperServer then AuxPort should be set in HyperServer config file. Quote Link to comment Share on other sites More sharing options...
emin Posted September 7, 2023 Author Share Posted September 7, 2023 All parameters are below. Still something wrong. Could you check again please Server module MainModule IIS website Site Bindings Server firewall HyperServer config file server_direct_url=http://localhost/destek/hyper_server.dll [websockets] enabled=1 aux_port=81 Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 7, 2023 Administrators Share Posted September 7, 2023 Are you accessing your app using SSL ? Quote Link to comment Share on other sites More sharing options...
emin Posted September 7, 2023 Author Share Posted September 7, 2023 Yes Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 7, 2023 Administrators Share Posted September 7, 2023 In this case you need a valid certificate for your domain. http://www.unigui.com/doc/online_help/index.html?websockets--ssl.htm Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.