question

Alessio Merlo avatar image
0 Likes"
Alessio Merlo asked Phil BoBo commented

Run multiple webserver instance

Hi community,

I have an issue with the webserver and I am searching a solution.

I need to run two different webservers in the same machine to support two different FlexSim versions.

If I run one webserver per time, everythings works. When I run both simultaneously, only one is initialize correctly. The second one return this error

  1. Error:
  2. listen EADDRINUSE: address already in use \\.\pipe\FlexsimServerRegistrationPipe
  3. Error: listen EADDRINUSE: address already in use \\.\pipe\FlexsimServerRegistrationPipe
  4. at Server.setupListenHandle [as _listen2] (node:net:1855:21)
  5. at listenInCluster (node:net:1920:12)
  6. at Server.listen (node:net:2025:5)
  7. at Object.runServer [as run] (C:\Program Files (x86)\FlexSim Web Server 22 - CV\webserver\server.js:356:22)
  8. at runServer (C:\Program Files (x86)\FlexSim Web Server 22 - CV\webserver\index.js:125:16)
  9. at Object.<anonymous> (C:\Program Files (x86)\FlexSim Web Server 22 - CV\webserver\index.js:129:5)
  10. at Module._compile (node:internal/modules/cjs/loader:1376:14)
  11. at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
  12. at Module.load (node:internal/modules/cjs/loader:1207:32)
  13. at Module._load (node:internal/modules/cjs/loader:1023:12)
  14.  
  15.  
  16. There was a Problem with the FlexSim WebServer.
  17. Press Enter to Exit.

I suppose that it isn't supported by webserver, but I need to confirm it. Do you have any workaround?

You can reproduce the problem in this easy way:

  1. install webserver 21.0 and configure it;
  2. install webserver 22.2 and configure it;
  3. run the webserver 21.0 (should work correctly);
  4. run the webserver 22.2 (shoudn't work);

I hope to find a solution!

FlexSim 24.0.3
webserver
· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Phil BoBo avatar image
0 Likes"
Phil BoBo answered Phil BoBo commented

You don't need multiple webservers to support multiple FlexSim versions anymore.

Just specify the path to the Version Selector for the FlexSim program directory in the webserver configuration file:

1716472466743.png


1716472466743.png (231.4 KiB)
· 4
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.