title: how to check if some port is open or not in hosting server
body: <p>I am integrating a payment gateway in the website which is being hosted in a server by a company. This process needs the 2 port to open, I have tested this with one server where I asked them to open the port and they did and my code run fine. But when I asked to open port for another company(hosting) , they say they opened the port but some how my code is not running fine ,there is connection refused message returned to me. So, I want to know if the second company has actually opened the port or not. Is there any way I could see if the port is open or not? The code is in CURL, and also it would be great if server has CURL enabled or not.</p>