rapiz1 / rathole

A lightweight and high-performance reverse proxy for NAT traversal, written in Rust. An alternative to frp and ngrok.
Apache License 2.0
8.8k stars 440 forks source link

Can't run on Windows Server 2008 R2 #357

Open fimmspin opened 2 months ago

fimmspin commented 2 months ago

Can't run rathole.exe on Win Server 2008 R2, first error happens for missing vcruntime140.dll (i have it installed on windows system folders and currently used by other programs successfully, it is 2015 version for Win server 2008 R2).

What minimum msvc version is required by rathole?

I also copied vcruntime140.dll and other vc related dlls into rathole folder and another error appears: "The application was unable to start correctly (0xc000007b). Click OK to close application"

Is there another compiled version for Win server 2008 R2? Is it possible to compile a windows version without msvc (may be using mingw or other way)?

( I'm currently using FRP but i'd like to try rathole because of lower memory usage and -may be- better speed (i want to also try rathole setting 'TCP_NODELAY to false' to better optimize TCP packets, even if a little delay is be added; i think it is not possible to control TCP_NODELAY in FRP). )

fernvenue commented 2 months ago

As Microsoft said in End of support for Windows Server 2008 and Windows Server 2008 R2, the Windows Server 2008 R2 is already dead, you may wanna upgrade to a newer version of Windows Server.

fimmspin commented 2 months ago

'Micro$$$oft' ended support, ok, but there are still smart developers making software for Windows NT 4.0 and old DOS! So i will continue to use FRP that is running well on old systems too. Unfortunately i cannot upgrade this 10 years old system because of other reasons...

-> If anyone can compile rathole.exe for older systems, please write here in this post, thanks.

Thank you for replying, b.regards

fimmspin commented 3 weeks ago

I realized that Rathole CAN run on Windows Server 2008 R2 too, but you need to download the 64bit version of vcruntime140.dll, instead of the 'default' 32bit version (yes, the .dll filename is the same but you need the 64bit for rathole 64bit).

You can find it here: https://www.dll-files.com/vcruntime140.dll.html

Once you put this .dll in rathole folder rathole.exe will run smoothly on older systems too! ;)