Restart local Blynk-Server

If I have created a local Blynkserver on my Windows PC and shut it down, how can I reach the same server again after restarting?

If I log in from the Blynk app with an account registered on the local server, it is not possible to establish a connection.

What is the command to wake up the same server again?

G. Lenny

You must enter your “server” directory and start your StartBlynkServer.cmd.
But if I were you, I will create a Bach to start with Windows. :stuck_out_tongue_winking_eye:

ok, which file is the StartBlynkServer.cmd ? The: “server-0.41.16-java8.jar” file?
(Im in my server directory, wher my log-files, etc… are)

And how can I write a Bach to restart it?

All the answers are here…


Yes it is

create a shortcut to your StartBlynkServer.cmd in this directory

C:\Users\yourname\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

Si I found a “better Script to do this.”

@echo off
echo **************************
echo Starting Blynk Server
echo Script created by
echo Waleed El-Badry
echo **************************
echo Your working directory is %~dp0
echo **************************
set ip_address_string="IP Address"
rem Uncomment the following line when using Windows 7 or Windows 8 / 8.1 (with removing "rem")!
set ip_address_string="IPv4 Address"
echo **************************
for /f "usebackq tokens=2 delims=:" %%f in (`ipconfig ^| findstr /c:%ip_address_string%`) do (
    echo Local Server IP Address is: %%f
    echo Hardware Port : 8080
	echo Application Port : 9443
echo **************************

cd /D %~dp0
echo Available server files
dir *.jar
@echo off
for /f "delims=" %%x in ('dir /od /b server*.jar') do set latestjar=%%x
@echo on
echo Server latest version on folder is %latestjar%
java -jar %latestjar% -dataFolder /server_data
    ECHO Server failed to started

All this has to be in a “XXXYY.bat” file.

Unfortunately, I am now faced with the problem that I unfortunately always set up a “new” server and thus delete all newly registered accounts …
(maybe because of the new generated password…?)

Windows Run a Script on Startup | DevDungeon.