Repast / repast.simphony

Git repository for Repast Simphony development
repast.github.io
90 stars 21 forks source link

Changing the Port of the Web Server #68

Open BeneLuWi opened 2 years ago

BeneLuWi commented 2 years ago

Changing the port of the web server as described in https://repast.github.io/docs/RepastNG/browser.html does not affect the frontend, so the connection to the web socket fails.

It appears, that the port is hardcoded. See https://github.com/Repast/repast.simphony/blob/master/repast.simphony.server/web/static/js/client.js#L187

ncollier commented 2 years ago

Thanks for reporting this bug. As a workaround, you can change the port in the javascript itself. On MacOS, that would be in

/Applications/Repast Simphony 2.9.0/Eclipse.app/Contents/Eclipse/plugins/repast.simphony.server_2.9.0/web/static/js/client.js on line 187.

As a test I changed the port to 5050 there and in the Eclipse launcher as mentioned in the docs, and it worked as expected. In the meantime, we will look into how to best to add port etc. configuration to the server.