Need help with Truffle Config Setup - Something went wrong while attempting to connect to the network. Check your network configuration

have tried several time but key getting this error

> Something went wrong while attempting to connect to the network. Check your network configuration.

Could not connect to your Ethereum client.
Please check that your Ethereum client:
    - is running
    - is accepting RPC connections (i.e., "--rpc" option is used in geth)
    - is accessible over the network
    - is properly configured in your Truffle configuration file (truffle-config.js)

and this is my config file

require('babel-register');
require('babel-polyfill');
const fs = require('fs')
const privateKey = fs.readFileSync(".secret").toString().trim()
const HDWalletProvider = require("@truffle/hdwallet-provider");


module.exports = {
    defaultNetwork: "hardhat",
    networks: {
      hardhat: {
        chainId: 1337
      },
      mumbai: {
        url: "https://smartbch.greyh.at", // "https://global.uat.cash",
        chainId: 10000,
        gasPrice: 1050000000,
        accounts: [privateKey]
      },
      testnet:{
        url: "https://moeing.tech:9545",
        network_id: "10001",
        
        gasPrice: 1050000000,
        accounts: [privateKey]
      },
    },
  contracts_directory: './client/src/contracts/',
  contracts_build_directory: './client/src/abis/',
  compilers: {
    solc: {
      version: "^0.6.0",
      optimizer: {
        enabled: true,
        runs: 200
      }
    }
  }
}