Melihat port yang digunakan oleh aplikasi di Windows

Request :

  • Melihat port 80 digunakan oleh aplikasi apa ?
  • Dan bagaimana mematikannya

Solution:

  • Menggunakan netstat

Netstat (network statistics) is a command-line tool that displays network connections (both incoming and outgoing), routing tables, and a number of network interface statistics. It is available on Unix, Unix-like, and Windows NT-based operating systems.

  • CMD—> netstat –ano

Penjelasan parameter

-a : Displays all active connections and the TCP and UDP ports on which the computer is listening

-n : Displays active TCP connections, however, addresses and port numbers are expressed numerically and no attempt is made to determine names.

-o : Displays active TCP connections and includes the process ID (PID) for each connection. You can find the application based on the PID on the Processes tab in Windows Task Manager.

  • Catat PID (Process ID) Aplikasi/Service yang menggunakan port 80.
  • Masuk Task Manager –> Klik View –> Select Column –> checklist PID
  • Sorted , kemudian end task aplikasi/service dengan PID yang telah dicatat