arcao / Syslog

An Arduino library for logging to Syslog server in IETF format (RFC 5424) and BSD format (RFC 3164)
MIT License
119 stars 48 forks source link

Pass IP address instead of server name #26

Open tuctboh opened 2 years ago

tuctboh commented 2 years ago

Hi,

I run a home lab and want to specify the IP address of the SYSLOG_SERVER, but seems like it only is looking for a string. (Since I'm tcpdumping the destination and nothing is coming to 514).

Tnx, Tuc

tuctboh commented 2 years ago

I relented and put this into DNS, and still not getting it to work. Does it matter I use WiFiNINA instead of just WiFi?

tuctboh commented 2 years ago

So dug into this more..

1) Learned I could put #define SYSLOG_SERVER {192,168,3,245} and it actually worked just fine 2) Realized after doing some investigation about WiFiNINA and UDP, you need to issue a client.begin(localPort).

I've submitted pr #27 to add an example file for WiFiNINA for others.

DrGonzo65 commented 1 year ago

Thank you! You saved me on this one. Needed to add the client.begin(localPort)