Added ip address prompt in app.d, and fixed the type bug in connection.d