So I would like my Rails app instances to register themselves on a \"I\'m up\" kind of thing I\'m playing with, and I\'d like it to be able to mention what local port it\'s
From inside any controller action, check the content of request.port, thus:
class SomeController < ApplicationController def some_action raise "I'm running on port #{request.port}." end end