Use application port instead of hardcoded 3001