Url Port for Rails Instance

Is there a way to get the url/port that the current rails app is
running on without using the http request/response loop?

Or a way to invoke a request to self from within a rails app that will
spawn the correct request object to get the url/port?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs