Ruby, Ruby Tutorial

How to block port using Ruby for testing purposes

Ruby Programming Language

This post is about using a port so that other applications will not be able to use it in test scenarios. For instance, you have some tests that uses a mock web service and you require the use of ranges of port numbers.

Ruby version

The ruby version for this post is

Of course, you require to install Ruby first which, unfortunately, is not covered here.

Ruby Codes


Got comments, or suggestions? Please visit our Facebook page!

You Might Also Like