added ip getter to app.js