# Figuring out what is sitting on your port

- Link: https://tongfamily.com/2013/06/21/figuring-out-what-is-sitting-on-your-port/
- Published: 2013-06-21T09:24:40-07:00
- Author: rich

[Mac OS X: find the program running on a port « databasically // Kansas City Small Business IT && Ruby on Rails Programming](http://databasically.com/2011/06/02/mac-os-x-find-the-program-running-on-a-port/)

>  
> Sometimes, there’s a program running on a port and you don’t know what it is. 
> How do you find out? I find this happens when I start a webserver up to test something
> locally and then I forget about it. So, if I wanted to find out what was running
> on port 80:
>     ```ruby
>       sudo lsof -i :80 # checks port 80
>       COMMAND   PID USER   FD   TYPE    DEVICE SIZE/OFF NODE NAME
>       ruby    64888   wg    6u  IPv4 0x6ddd270      0t0  TCP *:gds_db (LISTEN)
>     ```
> 
>  
>  This command shows a list of open files. The -i option checks for internet 
> addresses with the colon symbol representing a port (instead of an actual IP address).

### Share this:

 * [  Mastodon ](https://tongfamily.com/2013/06/21/figuring-out-what-is-sitting-on-your-port/?share=mastodon)
 * [  LinkedIn ](https://tongfamily.com/2013/06/21/figuring-out-what-is-sitting-on-your-port/?share=linkedin)
 * [  Facebook ](https://tongfamily.com/2013/06/21/figuring-out-what-is-sitting-on-your-port/?share=facebook)
 * [  WhatsApp ](https://tongfamily.com/2013/06/21/figuring-out-what-is-sitting-on-your-port/?share=jetpack-whatsapp)
 * [  Email ](https://tongfamily.com/2013/06/21/figuring-out-what-is-sitting-on-your-port/?subject=%5BShared%20Post%5D%20Figuring%20out%20what%20is%20sitting%20on%20your%20port&body=https%3A%2F%2Ftongfamily.com%2F2013%2F06%2F21%2Ffiguring-out-what-is-sitting-on-your-port%2F&share=email)
 * [More](https://tongfamily.com/2013/06/21/figuring-out-what-is-sitting-on-your-port/#)

 * [  Telegram ](https://tongfamily.com/2013/06/21/figuring-out-what-is-sitting-on-your-port/?share=telegram)
 * [  Print ](https://tongfamily.com/2013/06/21/figuring-out-what-is-sitting-on-your-port/#print?share=print)
 * [  Pinterest ](https://tongfamily.com/2013/06/21/figuring-out-what-is-sitting-on-your-port/?share=pinterest)
 * [  Tumblr ](https://tongfamily.com/2013/06/21/figuring-out-what-is-sitting-on-your-port/?share=tumblr)
 * [  X ](https://tongfamily.com/2013/06/21/figuring-out-what-is-sitting-on-your-port/?share=twitter)

### Like this:

Like Loading…
