TCP/UDP forced connection problem

I’m trying to force a UDP connection to a specific addresses. I’ve tried
this by modifying both the local and remote client via the bind() and
connect() call, but no success. If I bind() to INADDR_ANY and don’t issue a
connect, I can get the packets being sent. But when I tried to specify the
local address to bind() or issue a connect() to the host sending me the UDP
packets, they both fail with a “Can’t assigned requested address”. The
connect() works if I specify a port (i.e. 4343) but fails when I specify a
value of 0 (any port according to the QNX doc). Any suggestions?