Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open in emacs: No connection could be made because the target machine actively refuse it

Tags:

emacs

emacs24

I have followed post to enable emacs in windows explorer by adding following registry:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\Open In Emacs]

[HKEY_CLASSES_ROOT\*\shell\Open In Emacs\Command]
@="\"C:\\Unix-Bin\\emacs-24.3\\bin\\emacsclientw.exe\" -a \"C:\\Unix-Bin\\emacs-24.3\\bin\\runemacs.exe\" \"%1\""

Before today it works good. But today I find when to open file with "Open in Emacs" menu, following error will popup. And later the file is opened by emacs correctly.

No idea why following error come out.

Error :

C:\Unix-Bin\emacs-24.3\bin\emacsclientw.exe: connect: No connection could be made because the target machine actively refuse it.

enter image description here

like image 929
Amitabha Avatar asked Aug 15 '14 01:08

Amitabha


People also ask

How do you fix no connection could be made because target machine actively refused it?

You can try below solution: You might have a firewall rule in the way, or are trying to run it through a proxy without having the proxy up and running. The easiest way to check would be to disable your firewall or proxy and try again. Disable proxy at web.

Can't connect to target machine actively refused it?

​If no connection could be made because the target machine actively refused it, this indicates that the Source or Destination system blocked the connection. This is likely due to firewall or web server settings. In some cases, an IP restriction may be in place.


1 Answers

I had the same error message. In my case I had to delete the old connection: I removed

~/emacs.d/server/server

file and then it worked.

like image 153
Adobe Avatar answered Nov 16 '22 02:11

Adobe