Overslaan naar inhoud
  • +31 653-919-302
Cafayate.Net
  • 0
  • 0
  • Aanmelden
  • Nederlands English (US) Español (AR)
  • Contact
  • Startpagina
  • Blog
  • Vacatures
  • Contact
Cafayate.Net
  • 0
  • 0
    • Startpagina
    • Blog
    • Vacatures
    • Contact
  • +31 653-919-302
  • Nederlands English (US) Español (AR)
  • Aanmelden
  • Contact

netstat

  • Alle blogs
  • Tech Blog
  • netstat
  • 5 maart 2021 in
    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.

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

    Ontworpen voor bedrijven

    We zijn een team van gepassioneerde mensen met als doel levens te verbeteren met vernieuwende producten. We ontwikkelen geweldige oplossingen voor al je zakelijke uitdagingen. Onze producten zijn ontworpen voor kleine tot middelgrote bedrijven die hun prestaties willen optimaliseren.

    Neem contact op

    Plantexel
    Pedernera
    Salta Capital 
    Argentina

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