Change the default port to 80

Max

Administrator
Staff member
In latest builds
Code:
/usr/local/FlashphonerWebCallServer/conf/wcs-manager.properties
Code:
-Dserver.port=9091
 

Taihung

New Member
I've change
Dserver.port=80 and restart the service but still doesn't work. Do we need to change other config too ?
 

Max

Administrator
Staff member
Please share
1. Your wcs-manager.properties config
2. ps aux | grep FlashphonerWebCallServer
Code:
root     12039  185 17.7 2957880 341908 pts/0  Sl   03:50   0:53 java -Dloader.path=/usr/local/FlashphonerWebCallServer-5.0.2256/lib/tbs-commons.jar,/usr/local/FlashphonerWebCallServer-5.0.2256/lib/wcs_manager-1.0.jar -Dcom.flashphoner.fms.AppHome=/usr/local/FlashphonerWebCallServer -Dnode.enable_stdout=false -Dserver.port=80 -Xmx512M -Xloggc:/usr/local/FlashphonerWebCallServer/logs/gc-manager.log -Djava.net.preferIPv4Stack=true -jar /usr/local/FlashphonerWebCallServer-5.0.2256/lib/wcs_manager-1.0.jar -Xmx1024M -Djava.net.preferIPv4Stack=true -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=50999 -Djava.rmi.server.hostname=localhost -XX:ErrorFile=/usr/local/FlashphonerWebCallServer/logs/error%p.log -Xloggc:/usr/local/FlashphonerWebCallServer/logs/gc-core.log -Dcom.flashphoner.fms.AppHome=/usr/local/FlashphonerWebCallServer -Djava.library.path=/usr/local/FlashphonerWebCallServer/lib/so:/usr/local/FlashphonerWebCallServer/lib -DWCS_NON_ROOT=false -DsessionDebugEnabled=false -Djdk.tls.client.protocols="TLSv1,TLSv1.1,TLSv1.2" -cp /usr/local/FlashphonerWebCallServer/lib/* com.flashphoner.server.Server
As you can see, the process has this parameter
Code:
-Dserver.port=80
Eventually it works:
Code:
netstat -nlp | grep java
Code:
tcp        0      0 0.0.0.0:8081                0.0.0.0:*                   LISTEN      12087/java
tcp        0      0 0.0.0.0:8082                0.0.0.0:*                   LISTEN      12087/java
tcp        0      0 0.0.0.0:55286               0.0.0.0:*                   LISTEN      12087/java
tcp        0      0 0.0.0.0:50999               0.0.0.0:*                   LISTEN      12087/java
tcp        0      0 0.0.0.0:8888                0.0.0.0:*                   LISTEN      12039/java
tcp        0      0 0.0.0.0:8443                0.0.0.0:*                   LISTEN      12087/java
tcp        0      0 0.0.0.0:8444                0.0.0.0:*                   LISTEN      12087/java
tcp        0      0 0.0.0.0:8445                0.0.0.0:*                   LISTEN      12087/java
tcp        0      0 0.0.0.0:554                 0.0.0.0:*                   LISTEN      12087/java
tcp        0      0 0.0.0.0:1098                0.0.0.0:*                   LISTEN      12087/java
tcp        0      0 0.0.0.0:843                 0.0.0.0:*                   LISTEN      12087/java
tcp        0      0 0.0.0.0:1099                0.0.0.0:*                   LISTEN      12039/java
tcp        0      0 0.0.0.0:1935                0.0.0.0:*                   LISTEN      12087/java
tcp        0      0 0.0.0.0:8080                0.0.0.0:*                   LISTEN      12087/java
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN      12039/java
tcp        0      0 0.0.0.0:2000                0.0.0.0:*                   LISTEN      12039/java
udp        0      0 0.0.0.0:1935                0.0.0.0:*                               12087/java
You can see port 80 instead of 9091.
 

Max

Administrator
Staff member
Important note.
If you set port 80 instead of 9091, you have to set the same port for default URL and change:
http://localhost:9091/EchoApp
to
http://localhost:80/EchoApp
If you do not do this connection to WCS server will be always failed because it will still request http://localhost:9091/EchoApp by default.
To change this URL please read Rest Methods docs:
https://flashphoner.com/docs/wcs5/w...thods/index.html?controlling_rest_methods.htm
Code:
update -l http://localhost:80/EchoApp defaultApp
 

Max

Administrator
Staff member
Anyway, changing port to 80 is not a good idea.
You should better place html and js files on your standalone web hosting under port 80 (like apache or php).
Just move files from
Code:
/usr/local/FlashphonerWebCallServer-5.0.2256/client2
to your web hosting.
 
Top