Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

netstat

How to get default gateway in Mac OSX

December 11, 2022 by Tarik

You can try with: route -n get default It is not the same as GNU/Linux’s route -n (or even ip route show) but is useful for checking the default route information. Also, you can check the route that packages will take to a particular host. E.g. route -n get www.yahoo.com The output would be similar … Read more

Categories macos Tags ifconfig, macos, netstat, routes Leave a comment

Port 80 is being used by SYSTEM (PID 4), what is that?

September 19, 2022 by Tarik

There are many services, which can listen port 80 on windows. Luckily you can detect and stop them all running simple console command: NET stop HTTP When you’ll start it, you will get list first: To avoid this problem in future go to Local Services and disable listed services. N.B. – Some services will restart … Read more

Categories iis Tags iis, netstat, pid, port Leave a comment

Who is listening on a given TCP port on Mac OS X?

August 27, 2022 by Tarik

On macOS Big Sur and later, use this command: sudo lsof -i -P | grep LISTEN | grep :$PORT or to just see just IPv4: sudo lsof -nP -i4TCP:$PORT | grep LISTEN On older versions, use one of the following forms: sudo lsof -nP -iTCP:$PORT | grep LISTEN sudo lsof -nP -i:$PORT | grep LISTEN … Read more

Categories macos Tags listen, macos, netstat, tcp Leave a comment
Newer posts
← Previous Page1 Page2

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa