Fail to start appium service remotely


I have appium installed both on local laptop and a remote server (
I am able to start appium service on local laptop using appium.webdriver.appium_service module, but failed to start appium service on remote server, it raises AppiumServiceError as below. What is wrong here? Thank you in advance.

Appium has failed to start on within 60000ms timeout
Original error: b'\x1b[35m[HTTP]\x1b[39m Could not start REST http interface listener. Requested address is not available.\nFatal Error: listen EADDRNOTAVAIL: address not available\n    at Server.setupListenHandle [as _listen2] (net.js:1301:21)\n    at listenInCluster (net.js:1366:12)\n    at doListen (net.js:1503:7)\n    at processTicksAndRejections (internal/process/task_queues.js:81:21)\n'

Herewith the code.

from appium.webdriver.appium_service import AppiumService, AppiumServiceError

        service = AppiumService()
        if not service.is_running:
            service.start(args=['--address', 'localhost', '-p', '4723'])
            # service.start(args=['--address', '', '-p', '4723', '--allow-cors'])
            print(f'server is running: {service.is_running}')
            print(f'server is listening: {service.is_listening}')

    except AppiumServiceError as error:
  1. did you enable firewall rule for the service/process?
  2. what is with the -p parameter, did you want --port for consistency?
  3. dumb question, what happens if you manually run the server on the remote in the normal way, does it connect?

I am also facing same issue.
Did you get any solution for this?