Bind Service To Port
I run a private hosting for a few clients, and some of their cPanel accounts have the same two software panels installed. WHMCS billing Panel & Reseller Communications Panel. These 2 panels communicate with each other, and also need a certain TCP port opened.
I have used the CSF and added the port to the list in TCP-IN & TCP-OUT. Then I have iniated the change, and restarted the csf+lfd. The port does stay and show in the list.
The 2 installed panels keep failing to communicate, so I was told that this is because the services (panels) are not "binded to the port" yet.
For the life of me, I can't find an area in WHM where to do this. There must be a way to do this without typing code somewhere. Any help is appreciated.
-
What your describing does not make a lot of sense (sorry). WHMCS is not a service, it's a web site script (that manages billing) so it does not bind to a port. It uses various ports to communicate with things (payment providers, domain providers, servers to create accounts etc.). I don't know what " Reseller Communications Panel " is so I can't comment on that one. Can you give a bit more detail and what ports they are trying to communicate with/on? 0 -
The reseller panel (that WHMCS needs to communicate with) uses port 21442. When my clients try to communicate within WHMCS with this Reseller panel by initiating a "test connection" button, it says "failed communication". The company that makes WHMCS (Smarters) also makes this reseller panel. Smarters has verified that both are installed correctly, and it must be that port 21442 is NOT working/open. My hosting provider then looked into it for me, and said, and I quote..."the service is not binded to the port". I assume by the "service" they are referring to this Reseller panel. I have never run into this issue before when hosting. 0 -
If you share the exact steps you are taking at your end you may get better suggestions to solve your problem. 0 -
Hello, For the life of me, I can't find an area in WHM where to do this. There must be a way to do this without typing code somewhere. Any help is appreciated.
There is not a way to verify that service outside of cPanel is listening inside WHM. However, you could confirm that a service is listening using the command line on the server. You could use the ss command to check if a service is listening on a port:ss -ln 'sport = :21442'
If you need to test connectivity between servers without using PHP code, you could use the netcat command:nc -v $HOST $PORT '
Just replace $HOST and $PORT accordingly, if the server has a problem communicating with the remote server, you will either get a timeout or a connection refused error. You can refer to the documentation of ss and netcat here: If the service is listening, it's most likely a firewall somewhere that is blocking the connection.0 -
Hello, There is not a way to verify that service outside of cPanel is listening inside WHM. However, you could confirm that a service is listening using the command line on the server. You could use the ss command to check if a service is listening on a port:
ss -ln 'sport = :21442'
If you need to test connectivity between servers without using PHP code, you could use the netcat command:nc -v $HOST $PORT '
Just replace $HOST and $PORT accordingly, if the server has a problem communicating with the remote server, you will either get a timeout or a connection refused error. You can refer to the documentation of ss and netcat here: If the service is listening, it's most likely a firewall somewhere that is blocking the connection.
Thanks for that. The web hosting techs checked and did confirm the following: As per checking, there is no service bind to the port CT-5692 / # netstat -natp | grep :21442 CT-5692 / # Since this reseller panel is installed in the same root directory as the WHMCS, I assumed it would just work by opening the port using CSF. I do host my DNS elsewhere and point my domain and subdomains to my server IP. Does this make any difference?0 -
The DNS being at a remote location would not be related to the port the service uses on the local machine. If the third-party tool isn't working properly on the machine it would be best to speak with the makers of that tool. They would be able to confirm if the service runs as a daemon, which would bind to a port, but there won't be anything inside cPanel that will allow you to get that adjusted and working. 0 -
OK, thanks guys! 0 -
I am glad we could help! Please let us know if we can do anything else to assist you! 0
Please sign in to leave a comment.
Comments
8 comments