OS Error: Connection refused, errno = 111, address = 127.0.0.1, when trying to run a hello world blockchain app
1,104
If you are running this from an Android Emulator, you might want to take a look at: SocketException: OS Error: Connection refused, errno = 111 in flutter using django backend
10.0.2.2 would point to your localhost on your host machine where ganache is running.
Author by
zaid saeed
Updated on December 01, 2022Comments
-
zaid saeed over 1 year
I'm trying to follow this GeekForGeeks tutorial on mac M1 via emulator but I'm seeing this error
Unhandled Exception: SocketException: OS Error: Connection refused, errno = 111, address = 127.0.0.1, port = 49964
when I run this line
_credentials = await _client.credentialsFromPrivateKey(_privateKey);
my ganache screenshot is this:
I have added
<uses-permission android:name="android.permission.INTERNET" />
but it's still not working.
-
Sras almost 2 yearswhat about macos and ios?