Pages: [1]   Go Down
Author Topic: UDP "client"  (Read 473 times)
0 Members and 1 Guest are viewing this topic.
Quebec, Canada
Offline Offline
Newbie
*
Karma: 0
Posts: 39
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I notice that UDP does not car about client and server, you just make a UDP packet with ip and port to send the data! But do the Arduino at the other end (on a other network, i'm transmitting over internet) need port forwarding..i know that with tcp/ip the server need it..but for UDP there's no definition of server..there's no answer. there's no definition of client too..

how the data will get to the arduino at the other end if there's a router and other machine connect to on it's home network(LAN)?
Logged

Miramar Beach, Florida
Offline Offline
Faraday Member
**
Karma: 116
Posts: 5398
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You will need to port forward that to the localnet ip if you want reliable results. If the device behind the router is a UDP "client", like for NTP, then connection tracking in the router will normally allow a response if received in a couple seconds.
Logged

Quebec, Canada
Offline Offline
Newbie
*
Karma: 0
Posts: 39
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ok thanks! So the router will take any data from the "server" like a response to the data the "client" sent if it a resquest have been sent a couple of second ago..good.

Logged

Pages: [1]   Go Up
Jump to: