# Kmd error : Connection refused, errno = 111, address = 127.0.0.1, port = 44824 #0

**URL:** <https://forum.algorand.co/t/kmd-error-connection-refused-errno-111-address-127-0-0-1-port-44824-0/4457>\
**Category:** General\
**Tags:** testnet, algorand-wallet\
**Created:** [October 4, 2021, 1:11pm UTC](https://forum.algorand.co/t/kmd-error-connection-refused-errno-111-address-127-0-0-1-port-44824-0/4457 "2021-10-04T13:11:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![simospa](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@simospa](https://forum.algorand.co/u/simospa)\
**Post date:** [October 4, 2021, 1:11pm UTC](https://forum.algorand.co/t/kmd-error-connection-refused-errno-111-address-127-0-0-1-port-44824-0/4457/1 "2021-10-04T13:11:11Z")

</div>

Hello, I am developing an app using Flutter in dart with this external algorithm API: [GitHub - RootSoft/algorand-dart: Unofficial community SDK to interact with the Algorand network, for Dart & Flutter](https://github.com/RootSoft/algorand-dart).

My application is not directly connected to a node and when I try to use a kmd method to derive a wallet, I get this error:

```auto
DioError [DioErrorType.other]: SocketException: OS Error: Connection refused, errno = 111, address = 127.0.0.1, port = 44824
# 0

```

below the code I am using:

```auto
Future<String> createNewAddress() async {

    final walletRequest = (CreateWalletRequestBuilder()
      ..walletName = 'wallet'
      ..walletPassword = 'test'
      ..walletDriverName = '')
        .build();

    final handleTokenRequest = (InitWalletHandleTokenRequestBuilder()
        ..walletId = 'wallet'
        ..walletPassword = 'test')
          .build();

    final keyRequest = (GenerateKeyRequestBuilder()
      ..displayMnemonic = true
      ..walletHandleToken = 'aa')
        .build();

      final response = await algorand.kmd.createWallet(createWalletRequest: walletRequest);
      

      final handleToken = await algorand.kmd.initWalletHandleToken(initializeWalletHandleTokenRequest: handleTokenRequest);

      final address = await algorand.kmd.generateKey(generateKeyRequest: keyRequest);

      return address.toString();
  }

```

when i go to call algorithand.kmd.createWallet () function i get the error mentioned above.  
Could anyone tell me where I am wrong and how I can go about getting a correct result? thanks a lot!

---

<div class="post-metadata">

**Author:** ![fabrice](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fabrice](https://forum.algorand.co/u/fabrice)\
**Post date:** [October 4, 2021, 1:54pm UTC](https://forum.algorand.co/t/kmd-error-connection-refused-errno-111-address-127-0-0-1-port-44824-0/4457/2 "2021-10-04T13:54:00Z")

</div>



---

<div class="post-metadata">

**Author:** ![fabrice](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fabrice](https://forum.algorand.co/u/fabrice)\
**Post date:** [October 4, 2021, 1:54pm UTC](https://forum.algorand.co/t/kmd-error-connection-refused-errno-111-address-127-0-0-1-port-44824-0/4457/3 "2021-10-04T13:54:12Z")

</div>

This post is a duplicate.
