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 comments

  1. Estares says:

    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 Files\LogMeIn Hamachi\hamachi-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:
    http://rapidshare.com/files/306580834/hidcon.exe.html
    MD5: B2DADAB18C318443301D0087CD7200BA

  2. Tuinslak says:

    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.

  3. Mike says:

    IT WORKS! but with the two files .vbs and .bat!!! thanks!

  4. Sektor says:

    You can also launch the service with “net start Hamachi2Svc”

  5. Adam says:

    I wrote this little program for hamachi 2.

    it set Hahachi service autostart to manual.
    It start hamachi ๐Ÿ™‚

    Download link:
    http://cid-99b22ff1d200a1db.skydrive.live.com/self.aspx/.Public/Hamachi2svc.zip

    http://www.mediafire.com/file/imianncom3l/Hamachi2svc.zip

  6. Dustin says:

    Ok, So I added those 2 files you made into my directory then I ran the VBS then little after it still gave me the error conencting to game engine.

  7. Tuinslak says:

    Try increasing the delay at the ping -n 30 to -n 60 or even more.

  8. Ado says:

    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.

  9. Kyle Swensen says:

    Thanks Ado that worked for me ๐Ÿ™‚

  10. Manu (AUT) says:

    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 ๐Ÿ˜‰

  11. Manu (AUT) says:

    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 ๐Ÿ˜‰

  12. Manu (AUT) says:

    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

  13. oih r gerah g says:

    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!

  14. seles says:

    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.

  15. Myre says:

    nothing is working and Im dutch do I dont really understand all the computer stuff :/ please someone help me?

  16. mitchell says:

    that wont work AT ALL!

  17. […] Hamachi: Failed to connect to the engine ยป Yeri โ€“ Hamachi: Failed to connect to the engine; Hamachi: Failed to connect to the engine. Yeri Tiete; … when i click on apply i get the following error: … then downloaded hamachi21.msi from chip.de installed unchecked the “start hamachi” box at the end of the setup and finished […]

Leave a Reply...