When visit Virtual Box site, the client ip is gateway of virtual machine, not your dev machine ip.
- Add
import pdb;pdb.set_trace()
to any Django view, and open the view in chrome - Switch to termianl,
request.META.get('REMOTE_ADDR', None)
at the break point - The result is the true client ip address