Jump to content

Why Is UniServerModule.Port Different In A VM?


Frederick

Recommended Posts

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)
 

Link to comment
Share on other sites

  • Administrators
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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • Administrators
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...