updated code for appfog hosting
updated for ip and port for production