Port 4567 is the default port for Ruby Sinatra web framework and several development tools. Sinatra applications bind to port 4567 by default in development mode. TRAM (Threat Report ATT&CK Mapper) and some IoT device management interfaces also use this port. Not safe to expose without authentication – development defaults have no access control.
Port Number
4567
Protocol
TCP
Service
Sinatra / Application Default
Range
IANA Registered (1024–49151)
Check if a Sinatra app is running
curl -s http://localhost:4567/ -o /dev/null -w '%{http_code}'Detect Sinatra by its distinctive 404 page ('Sinatra doesn\'t know this ditty')
curl -s http://localhost:4567/nonexistent 2>&1 | grep -i 'sinatra'Identify process on port 4567
ss -tlnp | grep 4567Find the Ruby process bound to the Sinatra port
lsof -i :4567ruby app.rb # starts on 4567
curl http://localhost:4567/
sinatra: set :port, 4567Sinatra is a Ruby web framework created by Blake Mizerany in 2007, inspired by the simplicity of Express.js and Flask. Port 4567 was chosen arbitrarily as the default development port. Sinatra became popular for microservices and APIs due to its minimal DSL (a 'hello world' is 4 lines). It runs on WEBrick by default but should use Puma or Thin in production. Frank Sinatra's estate has not objected to the naming.
How do I run Sinatra in production?
Never use WEBrick (the default) in production. Instead: (1) Add gem 'puma' to Gemfile. (2) Create config/puma.rb with workers, threads, and bind settings. (3) Run: bundle exec puma -C config/puma.rb. (4) Front with nginx reverse proxy (handles TLS, static assets, buffering, security headers). (5) Set :environment, :production to disable verbose errors. (6) Use Rack middleware for rate limiting (rack-attack) and security headers (secure_headers gem).