ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

How will verify application listening on a port? Example: 80 port listening with web server.

user-image
تم إضافة السؤال من قبل Muhammad Anzar , DevOps/DevSecOps Architect , Confidential
تاريخ النشر: 2015/04/06
Rajesh Pant
من قبل Rajesh Pant , System Engineer , Tech Mahindra Limited

Go through below steps to verify & troubleshoot listening port :

Initially execute below command (telnet) to verify listening port :

#telnet localhost 80

 

To check it network side :

##netstat -tunlp | grep :80

 

To check running open files :##lsof -i :80 (OR#lsof -i tcp:80)

To debug & troubleshoot :##tcpdump -vv port 80

Daneesh Viswanathan
من قبل Daneesh Viswanathan , ICT Project Engineer , Salam Technology

We can use telnet command to know the ports status whether it is in opening state or not. As well netstat command will help you to identify a port is listening or not for a particular service like http,https,ssh etc...

Salman Aziz
من قبل Salman Aziz , Network Security Administrator , Agility - Kuwait

telnet the server IP using port80, e.g. open cmd and telnet192.168.1.180, it connection is successfull means port is open else its blocked somewhere in your network or on system itself.2ndly you can run port scanner softwares.

Vinod Nawal
من قبل Vinod Nawal , Global System & VoIP Administrator , Move One Relocations

On the server end, we can verify this using

#  netstat -plunt | grep nginx

Replace nignx with apache2 if running apache server.

 

From client end

 

#telnet  < Server IP Address> <port no>

 

 

 

 

Jerry John
من قبل Jerry John , Devops Engineer , NeST Technologies

you may check it in /etc/services.

Ali Alrefaee
من قبل Ali Alrefaee , Applications Consultant , Abu Dhabi City Municipality

open cmd prompt and run the below command

telnet <server IP address> 80

you should see a blank screen with blinking dash

Faseeh Mohd koya
من قبل Faseeh Mohd koya , IT SUPPORT ENGINEER [L2] , Ministry of Sports and Youth

Use Built-In Tools to See What is Listening on a Port

The first step is to use a command-line tool to see what ports are in use, and use a special flag that tells us which port is assigned to each Windows process identifier number. Then we can use that number to look up exactly which process it is.

Open up a command prompt and type in the following—you may have to open in Administrator mode to see all processes:

netstat -ab | more

This will immediately show you a list, although it’s maybe a little complicated. You’ll see the process name in the list, and you can search for it.

You can also use this other method, which takes an extra step, but makes it easier to locate the actual process:

netstat -aon | more

If you look on the right-hand side, you’ll see where I’ve highlighted the list of PIDs, or Process Identifiers. Find the one that’s bound to the port that you’re trying to troubleshoot—for this example, you’ll see that 0.0.0.0:80, or port 80, is in use by PID 4708.

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟