Updated appHost so it can take the listening port as an argument