Extract information from user agent.
set host address to 0.0.0.0 to allow access from host machine(related to vagrant).
set host address to 0.0.0.0 to allow access from host machine(related to vagrant).
fixed a merge conflict and removed unnecessary debug statement