Removed IP reference and added code to select env port or 8080.