Appium Socket Exception (No Address Supplied)

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`

It is probably needed to understand networking basics first: https://stackoverflow.com/questions/3655723/is-0-0-0-0-a-valid-ip-address

1 Like

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?

Resolved.
Thank you :slightly_smiling_face:

1 Like