Blynk Local server + IFTTT

I am seriously confused here

Same as it was a minute ago :slight_smile:

sudo nano costas.sh

Okay here we go I’m just typing in the first command now

Okay come on try and keep up if you can I’m waiting

Then paste in the following:

#!/bin/bash
sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
sudo iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-port 9443
sudo java -jar server-0.29.7-java8.jar -dataFolder /home/pi/Blynk

Then save with something like ctrl-X and Y for yes.

Oh come on me I am so tired after the last few late nights I feel like my eyes are off that program called kung fu with David carotene

Do I copy and paste all of the three commands in one or do I do them separately

In one.

Done, I’m now back at the command prompt

sudo nano costas.sh

This.

Okay so I’m now a little bit confused I just pasted in sudo chmod +x costas.sh

it just jumped down to new command prompt line

You say stop the server but the server would not have been running

That’s what it’s supposed to do.

Run the script, try:

./costas.sh

Should I just come out of the putty window and log back in to test

No, see my last post.

Yeah it’s okay the window was still open and I pasted in your last command and the cursor has jumped down to the next line and is a a for green block waiting as if it is waiting to finish something very much like when you go to start The Blynk server

Update To my previous message it now says that the server has started so what do we do next

So I am guessing that if I close the puttywindow then it should not stop the server like it did before if what we have done has actually worked

I think we need to edit the script again and add & on the last line so it looks like this:

sudo java -jar server-0.29.7-java8.jar -dataFolder /home/pi/Blynk &

Edit with:
sudo nano costas.sh

Okay I’ve done that do I need to run the test again