Laran Evans
I develop software people love to use.
  • Home
  • About
  • Contact
  • Resume
  • Testimonials
Skip to content
  • Entrepreneurship
    • Leadership
    • Project Management
    • Team Development
    • Time Management
  • Motorcycles
    • Restoration Projects
  • Puzzles
  • Software Architecture
    • Cloud Computing
  • Software Development
    • Algorithms
    • CSS
    • Java
    • Javascript
    • MySQL
    • PHP
    • Python
    • Ruby and Rails
    • System Administration
« How to Reset the Root Password in MySQL
Change Any MySQL User Password »

What’s running on port XXXX?

By laran | Published: 2009/12/08

Here are a couple of simple scripts to allow you to find out what’s running on any port on your machine.

On Windows

netstat -a -n -o
tasklist /svc /FI "PID eq 2844"

2844 should be replaced with whatever your process ID is.

On Linux

sudo apt-get install lsof; lsof -iTCP:80

TCP can be either “TCP” or “UDP”
80 should be replace with the port number you’re interested in

This entry was posted in System Administration and tagged linux, windows. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.
« How to Reset the Root Password in MySQL
Change Any MySQL User Password »

Post a Comment

Click here to cancel reply.

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • About Me

    I've got a masters degree in computer science and over 10 years of experience building web-based systems using Java/J2EE, Ruby, Rails and PHP. I'm a strong believer in the effectiveness of Agile Methods. Read more »

  • Subscribe

  • Table of Contents
    • On Windows
    • On Linux
  • Similar Posts
    • 6 Must-Know Sys-Admin How-Tos for Web Developers
    • Installing Magento on Dreamhost the easy way
    • Debugging Cron on Ubuntu
    • Get Past "Tomcat failed to start: Address already in use" Errors
    • Simple Fix for Apache on Snow Leopard
Hello world
  • From Around the Web

      Shared Items
    • Recent Posts

      • The carbs are clean!
      • 80 pages of Ruby on Rails Performance Optimization Tips
      • Ruby Garbage Collection In-Depth
      • Binary Logic Basics
      • Kuali in Nacubo Magazine
    • Older Posts By Month

      Let's Talk

      Ask a question below. You'll be prompted for your name and email after you click the "Ask" button.

    Know more. Accomplish more. Succeed.