# ERR\_CONNECTION\_REFUSED - not finding a solution

**URL:** <https://community.localwp.com/t/err-connection-refused-not-finding-a-solution/1613>\
**Category:** Support\
**Created:** [May 31, 2017, 6:45pm UTC](https://community.localwp.com/t/err-connection-refused-not-finding-a-solution/1613 "2017-05-31T18:45:01Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![romaniaa](https://avatars.discourse-cdn.com/v4/letter/r/5f8ce5/32.png) [@romaniaa](https://community.localwp.com/u/romaniaa)\
**Post date:** [May 31, 2017, 6:45pm UTC](https://community.localwp.com/t/err-connection-refused-not-finding-a-solution/1613/1 "2017-05-31T18:45:01Z")

</div>

Im getting an ERR\_CONNECTION\_REFUSED when I attempt to view any of my sites using Local.

I’ve been looking through other tickets and can’t seem to find a solution.

I’m on a mac, os 10.12, and recently updates to local 2.0.1.

I have cleared DNS Caches in Google Chrome Browser, i’ve tried Safari as well with no luck.

Any insight is appreciated, thanks.

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [May 31, 2017, 6:59pm UTC](https://community.localwp.com/t/err-connection-refused-not-finding-a-solution/1613/2 "2017-05-31T18:59:51Z")

</div>

Hi Roman,

Can you try running the following commands in Terminal and then provide the output here?

```auto
eval $(/Applications/Local\ by\ Flywheel.app/Contents/Resources/extraResources/virtual-machine/vendor/docker/osx/docker-machine env local-by-flywheel)

```

```auto
/Applications/Local\ by\ Flywheel.app/Contents/Resources/extraResources/virtual-machine/vendor/docker/osx/docker ps

```

Also, can you provide your Local log file? You can find it by going to Help » Reveal Local’s Log.

---

<div class="post-metadata">

**Author:** ![romaniaa](https://avatars.discourse-cdn.com/v4/letter/r/5f8ce5/32.png) [@romaniaa](https://community.localwp.com/u/romaniaa)\
**Post date:** [May 31, 2017, 7:42pm UTC](https://community.localwp.com/t/err-connection-refused-not-finding-a-solution/1613/3 "2017-05-31T19:42:15Z")

</div>

> [@clay](#):
>
> eval $(/Applications/Local\ by\ Flywheel.app/Contents/Resources/extraResources/virtual-machine/vendor/docker/osx/docker-machine env local-by-flywheel)

Result 1:

```auto
Romans-Computer:~ roman$ eval $(/Applications/Local\ by\ Flywheel.app/Contents/Resources/extraResources/virtual-machine/vendor/docker/osx/docker-machine env local-by-flywheel)
Romans-Computer:~ roman$ 
Romans-Computer:~ roman$ 

```

Result 2:

```auto
Romans-Computer:~ roman$ /Applications/Local\ by\ Flywheel.app/Contents/Resources/extraResources/virtual-machine/vendor/docker/osx/docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
50dbe1b6c584 flywheel:1.0 "nginx -g 'daemon ..." About an hour ago Up About an hour 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp determined_ramanujan
3896c27ba065 local-by-flywheel "/etc/scripts/slee..." 3 months ago Up About an hour 0.0.0.0:4001->80/tcp, 0.0.0.0:4501->443/tcp, 0.0.0.0:5501->1080/tcp, 0.0.0.0:5001->3306/tcp serene_mayer
Romans-Computer:~ roman$

```

---

<div class="post-metadata">

**Author:** ![romaniaa](https://avatars.discourse-cdn.com/v4/letter/r/5f8ce5/32.png) [@romaniaa](https://community.localwp.com/u/romaniaa)\
**Post date:** [May 31, 2017, 7:48pm UTC](https://community.localwp.com/t/err-connection-refused-not-finding-a-solution/1613/4 "2017-05-31T19:48:45Z")

</div>

the log is quite long, i’ve added it as an attachment

[local-by-flywheel copy.log](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/1X/bd9c31ea9c9092c210e633cc956aacd07191c7e1.log) (244.4 KB)

---

<div class="post-metadata">

**Author:** ![romaniaa](https://avatars.discourse-cdn.com/v4/letter/r/5f8ce5/32.png) [@romaniaa](https://community.localwp.com/u/romaniaa)\
**Post date:** [May 31, 2017, 11:14pm UTC](https://community.localwp.com/t/err-connection-refused-not-finding-a-solution/1613/5 "2017-05-31T23:14:47Z")

</div>

Have you had a chance to look at this? If its a simple resolution I’d love to find out.

Thansk

---

<div class="post-metadata">

**Author:** ![romaniaa](https://avatars.discourse-cdn.com/v4/letter/r/5f8ce5/32.png) [@romaniaa](https://community.localwp.com/u/romaniaa)\
**Post date:** [June 1, 2017, 2:41pm UTC](https://community.localwp.com/t/err-connection-refused-not-finding-a-solution/1613/6 "2017-06-01T14:41:37Z")

</div>

Hi Clay - did the log file provide any insights into my problem? I’d really like to get back to work using Local.

Thansk,

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [June 2, 2017, 7:12pm UTC](https://community.localwp.com/t/err-connection-refused-not-finding-a-solution/1613/7 "2017-06-02T19:12:31Z")

</div>

**Edit:**

This is now in Local 2.0.3: [Local by Flywheel 2.0.3 (macOS Only)](https://local.getflywheel.com/community/t/local-by-flywheel-2-0-3-macos-only/1721)

* * *

Hi Roman,

Can you please give this version a try? If it’s still acting weird, try going to Settings » Advanced and disabling “Faster Docker Volumes”

Thanks for your patience!

---

<div class="post-metadata">

**Author:** ![romaniaa](https://avatars.discourse-cdn.com/v4/letter/r/5f8ce5/32.png) [@romaniaa](https://community.localwp.com/u/romaniaa)\
**Post date:** [June 2, 2017, 7:19pm UTC](https://community.localwp.com/t/err-connection-refused-not-finding-a-solution/1613/8 "2017-06-02T19:19:36Z")

</div>

Thanks - I have to step away from my computer at the moment, but i’ll respond with the results shortly.

Thank you for the support,

---

<div class="post-metadata">

**Author:** ![zackkatz](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/zackkatz/32/4764_2.png) [@zackkatz](https://community.localwp.com/u/zackkatz)\
**Post date:** [June 2, 2017, 7:21pm UTC](https://community.localwp.com/t/err-connection-refused-not-finding-a-solution/1613/9 "2017-06-02T19:21:01Z")

</div>

Nice! This fixed the issue I was having ([Connection still refused on LbF2.0.2 by safari / firefox - connection refused (SOLVED)](https://local.getflywheel.com/community/t/connection-still-refused-on-lbf2-0-2-by-safari-firefox-nginx-refuse-to-open-the-connection-request/1656/9?u=zackkatz))

---

<div class="post-metadata">

**Author:** ![romaniaa](https://avatars.discourse-cdn.com/v4/letter/r/5f8ce5/32.png) [@romaniaa](https://community.localwp.com/u/romaniaa)\
**Post date:** [June 2, 2017, 7:59pm UTC](https://community.localwp.com/t/err-connection-refused-not-finding-a-solution/1613/10 "2017-06-02T19:59:51Z")

</div>

Clay - that worked when I disable the “Faster Docker Volumes”

I have one last issue: I saved a site and now when I import it into Local and launch it, I get a “Your wp-config.php file has an empty database table prefix, which is not supported.” error. I’m not sure how to fix that.

Here is the config file:

```auto
<?php
/**
 * The base configuration for WordPress
 *
 * The wp-config.php creation script uses this file during the
 * installation. You don't have to use the web site, you can
 * copy this file to "wp-config.php" and fill in the values.
 *
 * This file contains the following configurations:
 *
 * * MySQL settings
 * * Secret keys
 * * Database table prefix
 * * ABSPATH
 *
 * @link https://codex.wordpress.org/Editing_wp-config.php
 *
 * @package WordPress
 */

// **MySQL settings** //
/** The name of the database for WordPress */
define('DB_NAME', 'local');

/** MySQL database username */
define('DB_USER', 'root');

/** MySQL database password */
define('DB_PASSWORD', 'root');

/** MySQL hostname */
define('DB_HOST', 'localhost');

/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');

/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');

/**
 * Authentication Unique Keys and Salts.
 *
 * Change these to different unique phrases!
 * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
 * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
 *
 * @since 2.6.0
 */
define('AUTH_KEY', 'Gr2Apg9KETjfyzyD6qiZy9SRD7uDUK1OojtWKtiaQF7W4oZi9nYZgiRZjlp7rC9XSLxB4I/ipd8anyUWz8WRFg==');
define('SECURE_AUTH_KEY', 'ZLgmxw7HrcNm+w916Z5WM5tbGBO0E1s5r3moqgHMOjhp1JK5qvE/o43Q0yrRcEsQvka6N27GBEuqKBd07hLCJA==');
define('LOGGED_IN_KEY', 'IWNy35mtJanQYfXj4X06meCEMZPCoFbkPzdfvBzrAgH7NII0TD/WaNNJFbUZNS2lgCojnPdnnfXUXLiiAeGjgQ==');
define('NONCE_KEY', '5O9cjAJg8MOIP9E6RzD4Uo0cspI1tPHJ+YOt3L6jFYEoRKrSNEngfMWHN4SK5WO1N6N2AWEHrYuZ/d3dawrC3g==');
define('AUTH_SALT', 'sx70+LFLWePeuSBfW4TZBEh8kcKzXCCRZgD9eVZohYuwp/CNojDOXZPvgchVcnT16muEEC9pCqBra55OoyUrPg==');
define('SECURE_AUTH_SALT', 'cHH5sb07EcyPzboKJ2os1SDtRurDWA+yPLSrH8ox3pCC4LQgNvu3I/Zi/kA6XmA2i4rgLs/dm6W4Vt0EZj58wA==');
define('LOGGED_IN_SALT', '/L0ucpRH+zOvv9lUU2FTgL8+Jd8niHN1OHGM9kJHqbhINfLdE70/I6neO/2lwx44lS1p4mo/VIbP2xXK/DgInA==');
define('NONCE_SALT', 'aebw8heUpcpWbvs756rLNyxE4J4164OKz4iWyQ3Xq/n9hBkHUTf/nRiiksjNV2rGoXZ2Yxomyv0xTTVEy+XUgA==');

/**
 * WordPress Database Table prefix.
 *
 * You can have multiple installations in one database if you give each
 * a unique prefix. Only numbers, letters, and underscores please!
 */
$table_prefix = '';

/* Inserted by Local by Flywheel. See: http://codex.wordpress.org/Administration_Over_SSL#Using_a_Reverse_Proxy */
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
	$_SERVER['HTTPS'] = 'on';
}

/* That's all, stop editing! Happy blogging. */

/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
	define('ABSPATH', dirname( __FILE__ ) . '/');

/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');

```

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [June 2, 2017, 8:07pm UTC](https://community.localwp.com/t/err-connection-refused-not-finding-a-solution/1613/11 "2017-06-02T20:07:16Z")

</div>

Here’s what you can do to fix that:

1. Go to the Database tab for the site
2. Open either Adminer or Sequel Pro
3. Go to the `local` database and see what the prefix is. It should be something like `wp_`
4. Change `$table_prefix = '';` to `$table_prefix = 'PREFIX_HERE';`

Did you import this site into Local?

---

<div class="post-metadata">

**Author:** ![Alain](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@Alain](https://community.localwp.com/u/Alain)\
**Post date:** [June 2, 2017, 8:56pm UTC](https://community.localwp.com/t/err-connection-refused-not-finding-a-solution/1613/12 "2017-06-02T20:56:30Z")

</div>

You are a genius @Clay,  
It works perfectly now with this release and I don’t even have disabled “Faster Docker Volumes”.

Now I can start to work on my new project

Thanks a lot - very happy to test-drive LbF

---

<div class="post-metadata">

**Author:** ![clay](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/clay/32/8248_2.png) [@clay](https://community.localwp.com/u/clay)\
**Post date:** [June 2, 2017, 9:02pm UTC](https://community.localwp.com/t/err-connection-refused-not-finding-a-solution/1613/13 "2017-06-02T21:02:53Z")

</div>

Haha, thanks Alain!

Thanks for taking the time to help out with the screen share 😀 . It was hugely beneficial to solving this!

---

<div class="post-metadata">

**Author:** ![Alain](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@Alain](https://community.localwp.com/u/Alain)\
**Post date:** [June 2, 2017, 9:55pm UTC](https://community.localwp.com/t/err-connection-refused-not-finding-a-solution/1613/14 "2017-06-02T21:55:30Z")

</div>

It was a pleasure if it was of some help. I hope it can help many others.  
I just moved my complete site to LbF and everything is running fine (except that Wordpress is telling me that WP4.7.5 is the latest release although it should be 4.7.7 or 4.7.8) - this is just a minor problem that I will solve by downloading the latest release from WP site.

best regards

---

<div class="post-metadata">

**Author:** ![afragen](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/afragen/32/31_2.png) [@afragen](https://community.localwp.com/u/afragen)\
**Post date:** [June 2, 2017, 10:38pm UTC](https://community.localwp.com/t/err-connection-refused-not-finding-a-solution/1613/15 "2017-06-02T22:38:36Z")

</div>

Alain, 4.7.5 is currently the latest release. Trunk is now 4.8 RC2.

---

<div class="post-metadata">

**Author:** ![Alain](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@Alain](https://community.localwp.com/u/Alain)\
**Post date:** [June 2, 2017, 10:55pm UTC](https://community.localwp.com/t/err-connection-refused-not-finding-a-solution/1613/16 "2017-06-02T22:55:34Z")

</div>

Sorry @clay and @afragen, current fork is really 4.7.5.  
I was misinformed by looking a video presenting of so 4.7.8 and was thinking that 4.7.7 was the current one (or 4.7.8).  
The video didn’t say that the new version was yet available…

---

<div class="post-metadata">

**Author:** ![romaniaa](https://avatars.discourse-cdn.com/v4/letter/r/5f8ce5/32.png) [@romaniaa](https://community.localwp.com/u/romaniaa)\
**Post date:** [June 2, 2017, 11:24pm UTC](https://community.localwp.com/t/err-connection-refused-not-finding-a-solution/1613/17 "2017-06-02T23:24:17Z")

</div>

I did import it, but I exported it from the last version of Local that I had running. I’m not seeing where I can edit that prefix…

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [August 25, 2020, 6:31pm UTC](https://community.localwp.com/t/err-connection-refused-not-finding-a-solution/1613/18 "2020-08-25T18:31:56Z")

</div>


