Categories
Errors Software Windows

Hamachi: Failed to connect to the engine

After getting the Hamachi 2 update (without a prior notice, nicely done… No more auto update if they continue to break stuff) I started to notice a bunch of XPs receiving this error after a reboot: Failed to connect to the engine.

Hamachi is auto started, at boot, because we have a shortcut in the startup folder. No other way to auto start the free version (as far as I know).

Yet, when starting Hamachi manually after the PC had booted, there were no more errors. So it’s clear Hamachi tried to start before the engine (see services.msc -> LogMeIn Hamachi Engine or something) was started.

And reinstalling Hamachi only seemed to work on one of the XPs.

As there’s no easy way to delay the starting up of a program, I used some dirty vbs and batch… Kinda.

Here’s my solution:

Place both scripts in the Hamachi directory (c:\program files\logmein hamachi\)

hamachiStart.vbs:

Set WshShell = CreateObject("WScript.Shell")
WshShell.Run chr(34) & ".\hamachi.bat" & Chr(34), 0
Set WshShell = Nothing

hamachi.bat:

@echo off
ping -n 30 127.0.0.1 >NUL
"C:\Program Files\LogMeIn Hamachi\hamachi-2-ui.exe"
exit

Hamachi.vbs will start the bat file. This seems to be the only way to prevent a command prompt from opening (and staying open all the time).

Hamachi.bat will ping itself for 30ish seconds (don’t think there’s a cleaner way to do this…) and then start the Hamachi GUI.

If you’re still having problems, increase 30 to something like 60 or even more.

Anyway, last thing you’ll need to do is to make a shortcut of hamachi.vbs, and drag it into the startup folder.

Reboot, wait a bit, and enjoy.

18 replies on “Hamachi: Failed to connect to the engine”

You can do this without vbs. Just use “start” before path to hamachi:

@echo off
ping -n 30 127.0.0.1 >NUL
start “C:Program FilesLogMeIn Hamachihamachi-2-ui.exe”
exit

You can also use “hidcon.exe” to start your bat file in hidden console widow.

hidcon hamachi.bat

I found this tool rather hard to find now…
so I’ve uploaded it here:
https://web.archive.org/web/20150507114129/http://rapidshare.com:80/files/306580834/hidcon.exe.html
MD5: B2DADAB18C318443301D0087CD7200BA

If you’re still having problems, I got the recommendation to add this line (before starting the ping and start hamachi-2-ui.exe:

net start “LogMeIn Hamachi 2.0 Tunneling Engine”

This will start the service if, for some reason, it didn’t start yet. You need to include the quotes.

The fix is to start services.msc (Start-Launch-services.msc) , navigate to LogMeIn Hamachi 2.0 Tunneling Engine, start the tunnel, then start Hamachi.

i allready knew the fix of ado wich allways worked for me but now i installed win7ulti32bit.
the setup works fine (hamachi2.1.0.124) and at the end i’m asked to start hamachi.
i klick finish, the setup disappears.
then hamachi starts and is looking for an update.
hamachi disappears and a “hamachi is updating” splash screen is popping up.
when it’s gone there’s the error message!

i tried all fixes listed above but nothing worked.
when i start the “services.msc” and look in hamachi’s line there’s the text “deactivated”.
so i right click and in the context menu the first five entries are gray!
i go to it’s options (same functions are grey) and try to change starting type (no matter which one)
when i click on apply i get the following error: “The specified service has been marked for deletion.”

here’s where i got stuck..

my OS: win 7 ultimate 32 bit (SP1)
previous OS: win vista home premium 32 bit (SP2)
it’s the same machine as before, only the os has changed

i would be very very glad if anyone tells me the solution 🙂

Yours,
Manu van Austria 😉

Hi everybody,
nice thread and good work, but:

i allready knew the fix of ado wich allways worked for me but now i installed win7ulti32bit.
the setup works fine (hamachi2.1.0.124) and at the end i’m asked to start hamachi.
i klick finish, the setup disappears.
then hamachi starts and is looking for an update.
hamachi disappears and a “hamachi is updating” splash screen is popping up.
when it’s gone there’s the error message!

i tried all fixes listed above but nothing worked.
when i start the “services.msc” and look in hamachi’s line there’s the text “deactivated”.
so i right click and in the context menu the first five entries are gray!
i go to it’s options (same functions are grey) and try to change starting type (no matter which one)
when i click on apply i get the following error: “The specified service has been marked for deletion.”

here’s where i got stuck..

my OS: win 7 ultimate 32 bit (SP1)
previous OS: win vista home premium 32 bit (SP2)
it’s the same machine as before, only the os has changed

i would be very very glad if anyone tells me the solution 🙂

Yours,
Manu van Austria 😉

now i fixed it 😀

here’s what i did:
i uninstalled
rebooted
then downloaded hamachi21.msi from chip.de
installed
unchecked the “start hamachi” box at the end of the setup and finished
started “services.msc”
navigated to logmein hamachi
cancled the service
started the process explorer (alternative task manager)
killed the hamachi-2.exe
in services opened the properties of hamachi
set the starting type to “automatically (decelerated start)”
applied
started
and it works 🙂

now i’m happy and can sleep well tonight 😉
cya

Nothing works. NOTHING. I cant uninstall it, cant “Start” the service. I CANT DO ANYTHING! HELP. ME. PLEASE. Why does nothing work? I deleted everything in the LogMeInHamachi folder in Program files. That didn’t make it uninstall. I try to re-install and it says Another version has been detected on my computer. WTF IS HAPPENING!?!? Someone help me! I am SO FRUSTRATED!!!!

DEAR NEPTUNE PLEASE HELP ME!

Engine not running properly

To find the status of the engine:

Press the Windows key and the [R] key on the keyboard.
In the run box type services.msc, and press [Enter].
Look for the LogMeIn Hamachi Tunneling Engine.
If the engine is in any of the following states:

Started
Starting
Stopping
Then try restarting either the service, or the entire computer.

Leave a Reply...