Coder Social home page Coder Social logo

netstat's Introduction

The Netstat Package

CRAN status Travis build status

netstat allows you to easily view which TCP ports are in use and which are free to use.

# install.packages("netstat")
library(netstat)

See which TCP ports are currently in use with ports_in_use()

ports_in_use()
##  [1] "23730" "55523" "45655" "12849" "55483" "55484" "55479" "55478"
##  [9] "55473" "55471" "55459" "55445" "55443" "55439" "55430" "10467"
## [17] "55149" "55036" "54938" "54913" "54902" "54898" "54845" "54844"
## [25] "49155" "54828" "54827" "54826" "54824" "27971" "13580" "49738"
## [33] "49383" "5432"  "1025"  "1024"  "45112" "30666" "49159" "49156"
## [41] "49154" "49153" "55507" "51979" "62106" "60186" "63708" "59480"
## [49] "5353"  "57549" "58386" "51128" "64194" "53821" "52458" "*"    
## [57] "49212" "53007" "52377" "138"   "137"

Find a free TCP port using free_port()

free_port()
## [1] 14415
  • free_port() returns an available TCP port from Internet Assigned Numbers Authority (IANA) listed unassigned ports.

  • free_port() will not return any TCP port currently in use - so free_port() can safely be used to allocate a ports programmatically without collisions - great for automated testing or browser automation in general

netstat's People

Contributors

hrbrmstr avatar stevecondylios avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.