Unable to connect appium nodes for real devices to selenium server hub 4.0.0

I can’t seem to connect my appium node to selenium grid. I am using selenium-server-4.0.0, appium version 1.22.0 and selenium version 3.141

My real device configuration is as follows:

{
“capabilities”:
[
{
“deviceName”: “R52N20ALVDN”,
“platformVersion”: “10.0”,
“maxInstances”: 1,
“platformName”: “Android”
}
],
“configuration”: {
“cleanUpCycle”: 2000,
“timeout”: 30000,
“proxy”: “org.openqa.grid.selenium.proxy.DefaultRemoteProxy”,
“url”: “http://192.168.137.1:5000/wd/hub”,
“host”: “192.168.137.1”,
“port”: 5000,
“maxSession”: 1,
“register”: true,
“registerCycle”: 5000,
“hubPort”: 4444,
“hubHost”: “192.168.137.1”
}
}

and hub is started successfully:

C:\Selenium\grid-mobile-work>java -jar selenium-server-4.0.0.jar hub
21:31:09.949 INFO [LogManager$RootLogger.log] - Using the system default encoding
21:31:09.951 INFO [OpenTelemetryTracer.createTracer] - Using OpenTelemetry for tracing
21:31:10.413 INFO [BoundZmqEventBus.] - XPUB binding to [binding to tcp://:4442, advertising as tcp://192.168.137.1:4442], XSUB binding to [binding to tcp://:4443, advertising as tcp://192.168.137.1:4443]
21:31:10.450 INFO [UnboundZmqEventBus.] - Connecting to tcp://192.168.137.1:4442 and tcp://192.168.137.1:4443
21:31:10.468 INFO [UnboundZmqEventBus.] - Sockets created
21:31:11.482 INFO [UnboundZmqEventBus.] - Event bus ready
21:31:12.890 INFO [Hub.execute] - Started Selenium Hub 4.0.0 (revision 3a21814679): http://192.168.137.1:4444

But I can’t start my node:

C:\Selenium\grid-mobile-work>appium --nodeconfig C:\Selenium\grid-mobile-work\R52N20ALVDN.json
[Appium] Welcome to Appium v1.22.0
[Appium] Non-default server args:
[Appium] nodeconfig: C:\Selenium\grid-mobile-work\R52N20ALVDN.json
[debug] [Appium] Starting auto register thread for the grid. Will try to register every 5002 ms.
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[Appium] An attempt to register with the grid was unsuccessful: Request failed with status code 404
[Appium] Received SIGINT - shutting down
[debug] [Appium] There are no active sessions for cleanup
Terminate batch job (Y/N)? y

C:\Selenium\grid-mobile-work>appium --nodeconfig C:\Selenium\grid-mobile-work\R52N20ALVDN.json
[Appium] Welcome to Appium v1.22.0
[Appium] Non-default server args:
[Appium] nodeconfig: C:\Selenium\grid-mobile-work\R52N20ALVDN.json
[debug] [Appium] Starting auto register thread for the grid. Will try to register every 5000 ms.
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[Appium] An attempt to register with the grid was unsuccessful: Request failed with status code 404
[debug] [Appium] Hub down or not responding: Request failed with status code 404

Any idea where i am going wrong? My devices are real android tablets connected to PC via USB