secure-77 / Arduino-WOL-UDP-Server

Arduino WOL UDP Server with pin authentication

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Arduino WOL UDP Server

Description

Smal UDP Server running on a ESP8266 with simple authentification. Listen for input and send WOL packackes.

Project: https://secure77.de/arduino-als-wol-server/

Features

  • self startup on power
  • generating pin and send it via email
  • send WOL signals after correct authentication
  • accessible by mobile with termux and ncat
  • check target device status via ping
  • little bruteforce protection

Requirements

Usage

  • change the config.h file to your settings.
  • upload the sketch to your board
  • power on the board

if erverything is fine, your serial output should look like this:

....... connected
UPD Server is up and running
nc yourDomain.dyndns.org 5444 -u 
Please use the following start code, to wake up the VPN Server: 5399
E-Mail send
AP connection established, listening on 192.168.178.4:5444

connect to your udp server

  • use your hostname or connect to the ip via ncat

nc yourDomain.dyndns.org 5444 -u

  • enter you start code / pin you received via email

  • the server is now trying to wake up your target device

notes

  • for email debugging you can turn on the follwing in the libraries\esp8266-sendemail-master\sendemail.h file.
#define DEBUG_EMAIL_PORT Serial
  • as i used an older ESP8266 version, i need to change the line 30 in libraries\ESP8266Ping-master\src\ESP8266Ping.impl.h

from

_min_time = INT_MAX;

to

_min_time = 0;

About

Arduino WOL UDP Server with pin authentication

License:MIT License


Languages

Language:C++ 75.8%Language:C 24.2%