Solved Adding Listener on Port 443 for Webclient

Status
Not open for further replies.

jeffgeno

Premier Customer
Joined
Sep 4, 2019
Messages
26
Reaction score
8
I currently have my on premises 3cx system using ports 5000 and 5001. It's fine other than the fact that the webclient URL is messy to give to users. I know you can change the ports by reinstalling and restoring, but I'm not interested in reprovisioning all of our phones or breaking users' shortcuts to the existing URLs. I only care about the webclient URL. Is it possible to edit the nginx.conf file to add a couple lines that say

listen 443 ssl http2;
listen [::]:443 ssl http2;

and maintain the other 5001 and 5000 lines? Or would that cause something to break on the server?
 
Answering my own question here. The solution is even simpler. Windows allows you to create a port proxy that will redirect requests on port 443 to 5001.

netsh interface portproxy add v4tov4 listenport=443 listenaddress=[LOCAL IP] connectport=5001 connectaddress=[SAME LOCAL IP]

The URL gets rewritten when you connect, so anything that may have depended on port 5001 will work just fine afterwards.
 
I'm glad to see you found a way to do this but, for anyone else reading this, although theoretically a port proxy such as the one you describe would probably work, none of these methods are recommended by 3CX. If you need to change any of the ports, re-installing 3CX is the officially supported method to get this done and alternative solutions have not been tested.
 
  • Like
Reactions: jed and Evolute IT
Status
Not open for further replies.

Forum statistics

Threads
111,974
Messages
590,081
Members
164,899
Latest member
mazet