Ir al contenido
  • +31 653-919-302
Cafayate.Net
  • 0
  • 0
  • Inicia sesión
  • Nederlands English (US) Español (AR)
  • Contáctanos
  • Inicio
  • Blog
  • Empleos
  • Contáctanos
Cafayate.Net
  • 0
  • 0
    • Inicio
    • Blog
    • Empleos
    • Contáctanos
  • +31 653-919-302
  • Nederlands English (US) Español (AR)
  • Inicia sesión
  • Contáctanos

netstat

  • Todos los blogs
  • Tech Blog
  • netstat
  • 5 de marzo de 2021 por
    Administrator

     

    There’s a few parameters to netstat that are useful for this :

    • -l or --listening shows only the sockets currently listening for incoming connection.
    • -a or --all shows all sockets currently in use.
    • -t or --tcp shows the tcp sockets.
    • -u or --udp shows the udp sockets.
    • -n or --numeric shows the hosts and ports as numbers, instead of resolving in dns and looking in /etc/services.

     

    You use a mix of these to get what you want. To know which port numbers are currently in use, use one of these:

    netstat -atn           # For tcp
    netstat -aun           # For udp
    netstat -atun          # For both
    

     

    In the output all port mentioned are in use either listening for incoming connection or connected to a peer** all others are closed. TCP and UDP ports are 16 bits wide (they go from 1-65535)

     

    ** They can also be connecting/disconnecting from the peer.

    en Tech Blog
    How to restrict the visibility of website pages?

    Diseñado para empresas

    Somos un equipo de personas apasionadas cuyo objetivo es mejorar la vida de todos a través de productos revolucionarios. Creamos grandes productos para resolver sus problemas empresariales. Nuestros productos están diseñados para pequeñas y medianas empresas dispuestas a optimizar su rendimiento.

    Contáctenos

    Plantexel
    Pedernera
    Salta Capital 
    Argenina

    • +31 653-919-302
    • [email protected]
    Síganos
    Copyright © Plantexel
    Nederlands | English (US) | Español (AR)