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.


Posted by

in

, ,

Comments

18 responses to “Hamachi: Failed to connect to the engine”

  1. Estares avatar
    Estares

    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

  2. Tuinslak avatar

    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 avatar
    Mike

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

  4. Sektor avatar

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

  5. Adam avatar

    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 avatar

    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 avatar
    Tuinslak

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

  8. Ado avatar
    Ado

    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 avatar
    Kyle Swensen

    Thanks Ado that worked for me ๐Ÿ™‚

  10. Manu (AUT) avatar
    Manu (AUT)

    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) avatar
    Manu (AUT)

    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) avatar
    Manu (AUT)

    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. Yeri Tiete avatar

    Cheers ๐Ÿ™‚

  14. oih r gerah g avatar
    oih r gerah g

    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!

  15. seles avatar

    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.

  16. Myre avatar
    Myre

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

  17. mitchell avatar

    that wont work AT ALL!

  18. […] 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…