# UDP problems

**URL:** <https://forums.digi.com/t/udp-problems/9126>\
**Category:** Rabbit\
**Created:** [October 16, 2008, 11:15am UTC](https://forums.digi.com/t/udp-problems/9126 "2008-10-16T11:15:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trevormac](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Trevormac](https://forums.digi.com/u/Trevormac)\
**Post date:** [October 16, 2008, 11:15am UTC](https://forums.digi.com/t/udp-problems/9126/1 "2008-10-16T11:15:46Z")

</div>

I am using RCM3710 and having problems with networking. I have a design that has been working well on its own network but now I need to run it on a general network with other data. I originally set the Remote IP to 255.255.255.255 but if the PC I need the module to talk to does not get a message in before others the module never replies to its queries. Tried changing the Remote IP to 192.168.5.1 which is the ip of my PC but after receiving the packet it has an error when trying to send. the return value of udp\_send is \< 0. retval = udp\_send(&sock, buf, length);

Tried 0 but this is the same as 255.255.255.255. Tried -1 but I get an error when trying to send as when using 192.168.5.1

Here is my call.  
if(!udp\_open(&sock, local\_port, resolve(REMOTE\_IP), remote\_port, NULL))  
local\_port=2003, REMOTE\_IP is 0 or 192.168.5.1 or 255.255.255.255 and remote\_port is 2003.

What could be the problem

Thanks  
Trevor
