Iβm getting the error specific to the windows platform
Socket Exception: A request to send or receive data was disallowed because the socket is not connected and (when sending on datagram socket using a sendto call) no address was supplied.
(OS Error: A request to send or receive data was disallowed because the socket is not connected and (when sending on datagram socket using a sendto call) no address was supplied.),address = 0.0.0.0, port = 63961 dart:_http _HttpClient.postUrl
package: webdriver/src/request/async_io_request_client.dart
Please show your capability and whatβs your Appium client?
1 Like
Using Appium flutter client and its working on mac with same capabilities
on windows its showing error
Howβs your appium doctor?
1 Like
`WARN AppiumDoctor [Deprecated] Please use appium-doctor installed with "npm install @appium/doctor --location=global"`
`info AppiumDoctor Appium Doctor v.1.16.2`
`info AppiumDoctor ### Diagnostic for necessary dependencies starting ###`
`info AppiumDoctor β The Node.js binary was found at: C:\Program Files\nodejs\node.EXE`
`info AppiumDoctor β Node version is 18.12.0`
`info AppiumDoctor β ANDROID_HOME is set to: C:\Users\aksha\AppData\Local\Android\Sdk`
`info AppiumDoctor β JAVA_HOME is set to: C:\Program Files\Java\jdk-19`
`info AppiumDoctor Checking adb, android, emulator, apkanalyzer.bat`
`info AppiumDoctor 'adb' is in C:\Users\aksha\AppData\Local\Android\Sdk\platform-tools\adb.exe`
`info AppiumDoctor 'android' is in C:\Users\aksha\AppData\Local\Android\Sdk\tools\android.bat`
`info AppiumDoctor 'emulator' is in C:\Users\aksha\AppData\Local\Android\Sdk\emulator\emulator.exe`
`info AppiumDoctor 'apkanalyzer.bat' is in C:\Users\aksha\AppData\Local\Android\Sdk\cmdline-tools\latest\bin\apkanalyzer.bat`
`info AppiumDoctor β adb, android, emulator, apkanalyzer.bat exist: C:\Users\aksha\AppData\Local\Android\Sdk`
`info AppiumDoctor β 'bin' subfolder exists under 'C:\Program Files\Java\jdk-19'`
`info AppiumDoctor ### Diagnostic for necessary dependencies completed, no fix needed. ###`
`info AppiumDoctor`
`info AppiumDoctor ### Diagnostic for optional dependencies starting ###`
`WARN AppiumDoctor β opencv4nodejs cannot be found.`
`WARN AppiumDoctor β ffmpeg cannot be found`
`WARN AppiumDoctor β mjpeg-consumer cannot be found.`
`WARN AppiumDoctor β bundletool.jar cannot be found`
`WARN AppiumDoctor β gst-launch-1.0.exe and/or gst-inspect-1.0.exe cannot be found`
`info AppiumDoctor ### Diagnostic for optional dependencies completed, 5 fixes possible. ###`
`info AppiumDoctor`
`info AppiumDoctor ### Optional Manual Fixes ###`
`info AppiumDoctor The configuration can install optionally. Please do the following manually:`
`WARN AppiumDoctor β Why opencv4nodejs is needed and how to install it: ` `http://appium.io/docs/en/writing-running-appium/image-comparison/`
`WARN AppiumDoctor β ffmpeg is needed to record screen features. Please read ` `https://www.ffmpeg.org/` ` to install it`
`WARN AppiumDoctor β mjpeg-consumer module is required to use MJPEG-over-HTTP features. Please install it with 'npm i -g mjpeg-consumer'.`
`WARN AppiumDoctor β bundletool.jar is used to handle Android App Bundle. Please read ` `http://appium.io/docs/en/writing-running-appium/android/android-appbundle/` ` to install it. Also consider adding the ".jar" extension into your PATHEXT environment variable in order to fix the problem for Windows`
`WARN AppiumDoctor β gst-launch-1.0.exe and gst-inspect-1.0.exe are used to stream the screen of the device under test. Please read ` `https://appium.io/docs/en/writing-running-appium/android/android-screen-streaming/` ` to install them and for more details`
`info AppiumDoctor`
`info AppiumDoctor ###`
`info AppiumDoctor`
`info AppiumDoctor Bye! Run appium-doctor again when all manual fixes have been applied!`
`info AppiumDoctor`
I used http://0.0.0.0:4723/wd/hub/
itβs working fine on mac
on windows, Iβm getting the Socket Exception
Hmm might be a bit unorthodox idea, but can you try to use nodejs express to start server with the same ip address? Maybe just a simple hello world. See if it works.
1 Like
Tried creating a hello world node js server
working on mac but not working on windows for 0.0.0.0:9000
Did you try with
127.0.0.1:9000?