Jump to content
MrAu

Generate a random TCP port

Recommended Posts

Posted (edited)

I needed a way to quickly generate a random TCP port.  This workflow uses the rules from http://cubicspot.blogspot.com/2016/04/need-random-tcp-port-number-for-your.html and Sean Brewer's random.org python library https://www.random.org/clients/http/archive/ in a Python script to copy a legal port onto your clipboard.  I use this a lot to setup ports for apps in Unraid.

 

 image.thumb.png.bbae4300b5027d129db42e86ac8b7de2.png

 

image.thumb.png.af4cb2f5a8131c9b8fb0b3792be74a5e.png

 

Download: https://github.com/fxjkhr/alfred-workflows/blob/master/random-port-generator.alfredworkflow

Edited by MrAu

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...