Select to view content in your preferred language

Installing WAB on another port

1063
8
Jump to solution
02-14-2023 01:19 PM
LefterisKoumis
Frequent Contributor

I got a new PC (windows 11), and trying to install the WAB on another port.

I followed the steps outlined on the WAB's Get Starter website  by typing under the server dir the command:

node_x64.exe server.js -4000

Then in the cmd window I noticed the screen further below.

When I tried to access the website by :

https://<mymachinename>:4000/webappbuilder I got "The site can't reached" 

Even though I tried to  run WAB under port 4000 it still uses 3344. What am I doing wrong?

LefterisKoumis_1-1676409252594.png

 

@RobertScheitlin__GISP 

 

0 Kudos
1 Solution

Accepted Solutions
Brian_Wilson
Honored Contributor

Ha !!! Use one dash not two      -port=4000

wabde_1  | Server listening tcp connection on port 4000 in development mode
wabde_1  | [2023-02-14T23:23:11.311] [INFO] repo - Read repository items: /srv/client/stemapp/widgets
wabde_1  | Server listening http connection on port 4001 in development mode
wabde_1  | Server listening https connection on port 4002 in development mode
wabde_1  | [2023-02-14T23:23:14.774] [INFO] repo - Read repository items: /srv/client/stemapp/themes

 

 

 

View solution in original post

0 Kudos
8 Replies
Brian_Wilson
Honored Contributor

Try "node_64.exe server.js --port=4000"

0 Kudos
LefterisKoumis
Frequent Contributor

No difference.

LefterisKoumis_0-1676415224134.png

 

0 Kudos
Brian_Wilson
Honored Contributor

Ha !!! Use one dash not two      -port=4000

wabde_1  | Server listening tcp connection on port 4000 in development mode
wabde_1  | [2023-02-14T23:23:11.311] [INFO] repo - Read repository items: /srv/client/stemapp/widgets
wabde_1  | Server listening http connection on port 4001 in development mode
wabde_1  | Server listening https connection on port 4002 in development mode
wabde_1  | [2023-02-14T23:23:14.774] [INFO] repo - Read repository items: /srv/client/stemapp/themes

 

 

 

0 Kudos
LefterisKoumis
Frequent Contributor

Thank you. That was it. The only reason why I am using the default 3344 is because I get the "The site can't reached" . I checked the port 3344 and is not used so I am lost for words why is not working. 

0 Kudos
Brian_Wilson
Honored Contributor

You use Windows!   🙂    Is there a firewall running on the machine? They have those by default these days.

0 Kudos
LefterisKoumis
Frequent Contributor

It is not the firewall. I disabled my firewall temporary, and still didn't work.

I installed WAB myriad of times and this the first time I have this issue. 

I run the netstat to review the ports and there is nothing unusual.  Thank you for your help.

0 Kudos
LefterisKoumis
Frequent Contributor

Just FYI, I found a way to run WAB on port 3344 by running a windows service instead of using the startup script.

0 Kudos
Brian_Wilson
Honored Contributor

Good on you, I've never worked through running Node on Windows.

I run it (along with many other things) in Docker containers for both Windows and Linux and highly recommend that. There are many advantages, including not corrupting the operating system and running different incompatible apps that need different versions of Node.

 

0 Kudos