To use a development host's external IP address rather than the "localhost" address or loopback address of 127.0.0.1, explicitly bind to the host's external IP address. By default servers may listen on 0.0.0.0 (any address) and the localhost address ends up being used when testing on the same host as the development host.
To bind explicitly using web brick for example:
rails server -b my.real.ip.address
To bind explicitly using apache/passenger or similar, in the apache config use:
Listen my.real.ip.address:port