Page 1 of 1

Change TCP/IP port

Posted: 11 Jul 2015 10:26
by PNinBB
Is there a way to change the (built-in) TCP/IP port number from 8083 to e.g. 8082.
The entry in config.xml

Code: Select all

 <port>8082</port>
is without any effect. What is then the purpose of this value ??
In version 2.0.0 I changed the port number in the file automation/main.js

Code: Select all

ws = new WebServer(8082, WebServerRequestHandler, {
        document_root: "htdocs"
});
and it worked perfect.
After upgrade to 2.0.1. it does not help anymore.
Any help is highly appreciated.

Re: Change TCP/IP port

Posted: 15 Jul 2015 01:59
by PoltoS
upgrade erased your change. apply it again

Re: Change TCP/IP port

Posted: 28 Jul 2015 21:01
by PNinBB
Of course, I did again the changes I did before !
But over and above that I found in folder "/opt/z-way-server/automation/__tests__/func"
a lot of js-functions with "hard-wired" port number 8083.
I can not believe that such an important parameter as port number is not defined in a global variable to make changes possible.
Any hint would highly appreciated.

Re: Change TCP/IP port

Posted: 01 Aug 2015 02:47
by PoltoS
These are tests for API, you don't need them. The port is hardcoded, since all our apps relies on this "well known port". If you want to change it, all apps will stop working