Arduino Boards over USB Hub on RaspB Local Server, need help with SOCAT

Hello, first of all my knowlege of programming in general is very limited so please be patient.

I did some tests with USB Connected Arduinos on OSX over Blynk Cloud, everything worked.

Now i would like to set up more than one Arduino boards which are directly connected via USB to a Raspberry B local Server.
The Raspberry was a headless setup and i installed a VNC Server which all is working fine.

I can connect via iOS Blynk App on the local server but i get the message that the “device is offline”.
When i open the Serial Monitor in the Arduino IDE i get the AuthToken repeatedly.

The sketch (used the sketchbuilder) look like this:

#include <SoftwareSerial.h>
SoftwareSerial SwSerial(10, 11); // RX, TX
#include <BlynkSimpleStream.h>
#include <DHT.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "myauthtoken";

#define DHTPIN 2          // What digital pin we're connected to

// Uncomment whatever type you're using!
//#define DHTTYPE DHT11     // DHT 11
#define DHTTYPE DHT22   // DHT 22, AM2302, AM2321
//#define DHTTYPE DHT21   // DHT 21, AM2301

BlynkTimer timer;

// This function sends Arduino's up time every second to Virtual Pin (5).
// In the app, Widget's reading frequency should be set to PUSH. This means
// that you define how often to send data to Blynk App.
void sendSensor()
  float h = dht.readHumidity();
  float t = dht.readTemperature(); // or dht.readTemperature(true) for Fahrenheit

  if (isnan(h) || isnan(t)) {
    SwSerial.println("Failed to read from DHT sensor!");
  // You can send any value at any time.
  // Please don't send more that 10 values per second.
  Blynk.virtualWrite(V5, h);
  Blynk.virtualWrite(V6, t);

void setup()
  // Debug console

  // Blynk will work through Serial
  // Do not read or write this serial manually in your sketch
  Blynk.begin(Serial, auth);


  // Setup a function to be called every second
  timer.setInterval(1000L, sendSensor);

void loop()

i am supposed to change “Blynk.begin(Serial, auth);” to what exactly?

In the manual it says:
Change your rasp PI javascript from

or in case of USB when running provide '-s' option with address of your local server

  ./ -s you_host_or_IP

pi@raspberrypi:~/Arduino/libraries/Blynk/scripts $ ./
Warning: Server connection may be insecure!
[ Press Ctrl+C to exit ]
Connecting: TCP-LISTEN:8442,reuseaddr,fork,nodelay <-> TCP:,nodelay
2017/11/07 21:48:11 socat[3453] E bind(5, {AF=2}, 16): Address already in use
2017/11/07 21:48:11 socat[3453] N exit(1)
Reconnecting in 3s...

when running “nano /home/pi/Arduino/libraries/Blynk/scripts/” i get:

# Detect script path
pushd `dirname $0` > /dev/null
popd > /dev/null

# === Edit default options to match your need ===




any Ideas?

My guess is that the server (or something else) is already running (on that port). Try this on your RPi:

~$ netstat -l | grep 8442

And kill whatever you find :wink: