Frederick Posted September 21, 2023 Share Posted September 21, 2023 I set UniServerModule's port to 8082 in my application. When I run it in a local machine, reading UniServerModule.Port returns 8082. When I run the same application in a VM (VMWare Workstation), UniServerModule.Port returns a different number (16685). Why does this happen? Interestingly, I need to use port 8082 in both browser calls to get the application running, i.e. http://localhost:8082. Using http://localhost:16685 in the VM does not work. -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1572) Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 22, 2023 Administrators Share Posted September 22, 2023 12 hours ago, Frederick said: I set UniServerModule's port to 8082 in my application. When I run it in a local machine, reading UniServerModule.Port returns 8082. When I run the same application in a VM (VMWare Workstation), UniServerModule.Port returns a different number (16685). Why does this happen? Interestingly, I need to use port 8082 in both browser calls to get the application running, i.e. http://localhost:8082. Using http://localhost:16685 in the VM does not work. -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1572) Hi, Are you using HyperServer in your VM? If yes, HyperServer assigns a different port automatically to each Node. That's why you see different ports. Quote Link to comment Share on other sites More sharing options...
Frederick Posted September 22, 2023 Author Share Posted September 22, 2023 2 hours ago, Farshad Mohajeri said: Hi, Are you using HyperServer in your VM? If yes, HyperServer assigns a different port automatically to each Node. That's why you see different ports. Yes, I am using HyperServer in the VM. Shouldn't UniServerModule.Port display a value that I had assigned during design time and remain so regardless of what HyperServer returns since it is a property that can be assigned a value? Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 22, 2023 Administrators Share Posted September 22, 2023 4 hours ago, Frederick said: Yes, I am using HyperServer in the VM. Shouldn't UniServerModule.Port display a value that I had assigned during design time and remain so regardless of what HyperServer returns since it is a property that can be assigned a value? When used with HyperServer your assigned port is irrelevant. System will use an automatically assigned port based on HyperServer CFG file. Quote Link to comment Share on other sites More sharing options...
Frederick Posted September 22, 2023 Author Share Posted September 22, 2023 May I know which property I can read that shows the port which I assigned and what the application needs to start it regardless of the environment it is started from? Quote Link to comment Share on other sites More sharing options...
markokas Posted September 23, 2023 Share Posted September 23, 2023 You can read HyperServer port form HyperServer CFG file. Br, Marko Quote Link to comment Share on other sites More sharing options...
Frederick Posted September 23, 2023 Author Share Posted September 23, 2023 Thanks for the tip. I think I am going to just use a hardcoded variable and refer to it. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted September 23, 2023 Administrators Share Posted September 23, 2023 [http_transport] start_port=20000 It is the related parameter in the CFG file. 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.