All Projects → coreybutler → porthog

coreybutler / porthog

Licence: MIT license
Identify which process is using a specific port.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to porthog

PSnmap
Svendsen Tech's PowerShell nmap-like port scanner accepting IPv4 CIDR notation
Stars: ✭ 37 (+37.04%)
Mutual labels:  port, portscanner
Zircolite
A standalone SIGMA-based detection tool for EVTX, Auditd and Sysmon for Linux logs
Stars: ✭ 443 (+1540.74%)
Mutual labels:  detection
todo-cli
✅ Command-line tool to manage Todo lists
Stars: ✭ 88 (+225.93%)
Mutual labels:  management
MediCare-Prime
Prediction or detection of various medical ailments
Stars: ✭ 19 (-29.63%)
Mutual labels:  detection
space
Productivity & Management app
Stars: ✭ 106 (+292.59%)
Mutual labels:  management
RFBNet
Receptive Field Block Net for Accurate and Fast Object Detection, ECCV 2018
Stars: ✭ 1,380 (+5011.11%)
Mutual labels:  detection
DuckyPanel
Modern email control panel for WildDuck
Stars: ✭ 33 (+22.22%)
Mutual labels:  management
sensible-github-labels
Github labels for teams that like workflows and structure
Stars: ✭ 121 (+348.15%)
Mutual labels:  management
RoomScout
A web app for finding and managing roommates
Stars: ✭ 28 (+3.7%)
Mutual labels:  management
university
University Management System
Stars: ✭ 15 (-44.44%)
Mutual labels:  management
mrgit
A tool for managing projects build using multiple repositories.
Stars: ✭ 42 (+55.56%)
Mutual labels:  management
whatnext
A smart and lazy way of organizing your studies. Prioritize the future and track the past. An open-source product written in Haskell and Elm
Stars: ✭ 15 (-44.44%)
Mutual labels:  management
Facial-Keypoint-Detection
Facial keypoint detection system takes in any image with faces, and predicts the location of 68 distinguishing keypoints on the face - Udacity project
Stars: ✭ 37 (+37.04%)
Mutual labels:  detection
areas
A rewrite of the node_ownership Minetest mod with many new features.
Stars: ✭ 48 (+77.78%)
Mutual labels:  management
aev
Android library to verify the safety of user devices. Make sure that API calls from your app can be trusted. Instantly detect rooted devices, emulators, cloned apps, and other risk factors.
Stars: ✭ 64 (+137.04%)
Mutual labels:  detection
engineering-leader
Beginning knowledge for leading and managing engineers
Stars: ✭ 22 (-18.52%)
Mutual labels:  management
napari-hub
Discover, install, and share napari plugins
Stars: ✭ 44 (+62.96%)
Mutual labels:  detection
LiDARTag
This is a package for LiDARTag, described in paper: LiDARTag: A Real-Time Fiducial Tag System for Point Clouds
Stars: ✭ 161 (+496.3%)
Mutual labels:  detection
commissaire
A lightweight REST interface for under-the-covers cluster system management.
Stars: ✭ 19 (-29.63%)
Mutual labels:  management
PlantDoc-Dataset
Dataset used in "PlantDoc: A Dataset for Visual Plant Disease Detection" accepted in CODS-COMAD 2020
Stars: ✭ 114 (+322.22%)
Mutual labels:  detection

porthog

This module identifies which application is using a specified port, providing the process name and PID. Works for Windows, OSX, and most flavors of Linux/Unix that support the lsof, ss, or netstat operations.

Windows, macOS, & Linux

CLI Implementation

npm install -g porthog

porthog 33649 80

Outputs:

PORT      PID       PROCESS
--------------------------------------------------
33649     43580     node-webkit Helper (cbutler)
80        -         -

API Implementation Example

const porthog = require('porthog')
const data = porthog(80)

console.log(data.user, 'is running', data.process + ' (PID ' + data.pid + ') on port 80.')

// Output
// cbutler is running node.exe (PID 656) on port 80.

This operation may require elevated/root privileges.

Uses

We're using this in Fenix Web Server to resolve port conflicts. When a user tries to launch a server on an occupied port, we use porthog to determine which app is "hogging" the port and provide the user an option to stop/kill the offending process.

We also use this in combination with node-windows, node-mac, and node-linux to create background processes that monitor ports and notify users what's running on the ports they want to use.

There are certainly many other uses. If you use this, be warned that some operating systems (Windows in particular) may require elevated permissions. This is dependent on each user's environment, so it's not always predictable. To get around this, we've found the aforementioned node-* modules to be useful when creating daemons (especially the binary utilities and extra scripts for Windows). For Electron/NW.js apps, sudo-prompt has been quite helpful.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].