谢谢.
class ActionDispatch::Request #rails 2: ActionController::Request def remote_ip '1.2.3.4' end end
而1.2.3.4的地址可以随处可见