अपने सर्वर में सभी खुले बंदरगाहों का परीक्षण कैसे करें? Serverhosthub – The Hosting Platform Made For You – Go Online With Hosting serverhosthub | free hosting | Linux shared hosting | Hosting | Free domain | Life time Free ssl certificate | Chepest web hosting | Low price hosting | Domain Transfer

How to test if a port is open on a server?

Here in this tutorial we will explain to you “How to check if a port is open on your server or not?”

So let’s start this tutorial by watching this video to learn “How to test if a port is open on a server?

Follow the steps to check if a server has a port open via cPanel:

Phase 1 Log in to your cPanel and go to the File Manager section

Code for testing open ports in any server

Phase 2 Go inside public_html and create a new file i.e portopen.php

Code for testing open ports in any server

step 3 Once the file is created, right click on the file and select Edit option

Code for testing open ports in any server

step 4 Now copy the code given in the below link and paste it in the newly created php file https://pastebin.com/6Q5LXf91

Code for testing open ports in any server

(make sure you replace the host ip address with your actual server ip address and port you want to test)

Code for testing open ports in any server

Step::5 Now open your web browser and run this file with the same path as my domain is cricketfeed.

cricketfeed.tk/openport.php

Now check result below

Code for testing open ports in any server

Once you hit this file, you will be able to see a list of all the ports that are open and closed

this much only!! Done.