Hello I'm trying to use arduino with ethernet module to communicate between 2 arduino's via network (no internet)
it's like 2 stations each has its own arduino and ethernet module and both connected to same network (local network without internet access)
and I need to communicate between them to send orders from 1 side to do specific actions on the other side
I've seen this example : https://www.arduino.cc/en/Tutorial/UDPSendReceiveString
but I was wondering if it works without internet or not ?
and why in the sending part it doesn't enter an IP ?
best regards
and why in the sending part it doesn't enter an IP ?
Read it again
It works without internet. The function title is technically incorrect. It receives a packet, then sends a response to the address from which it received the packet. It is like a UDP "server". If you want to see how a UDP "client" works, check out the NTP example.
TolpuddleSartre:
Read it again
I was talking about the commented code which should be the other side , which should have a different fixed IP and it sends and receives same as 1st side .
or did I get something wrong?
or should I just use same code in both sides and just change the IP?
SurferTim:
It works without internet. The function title is technically incorrect. It receives a packet, then sends a response to the address from which it received the packet. It is like a UDP "server". If you want to see how a UDP "client" works, check out the NTP example.
can I use same code at both sides and just change the IP so i can use both as a transceiver ?
and are you sure it doesn't require internet ? because I made a search and the term UDP always related to internet
You can use the same code on both ends if you modify one.
You can use UDP on a localnet without an internet connection.