Jump to content

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.






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.

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...