Hi Garabo,
I am using a unique MAC for every device because this is written somewhere else (external).
As I was reading my earlier reply to you I found a problem on 1 of my statement which is
"Next I thought might be our network. So I connected only 2 devices on a router. The result is still the same."
Here is the current update on what I am doing.
All along I am using our network and device1 connected to Router A and device2 connected to router B.
I will list out here my setup:
Scenario 1 (connected to network and gateway)
1. Device 1 connected to router A
2. Device 2 connected to router B
3. both router A and B connected in the local network
4. for ipcfg_bind_staticip to work, there needs to be a delay
Scenario 2
(connected to network and gateway)
1. Device 1 connected to router A
2. Device 2 connected to router A
3. Router A connected in the local network
3. ipcfg_bind_staticip works perfectly (no delay needed)
Scenario 3
(not connected with network and gateway)
1. Device 1 connected to router/switch
2. Device 2 connected to router/switch
3. router/switch not connected to our network. Purely for connection between device 1 and device 2
3. ipcfg_bind_staticip works perfectly (no delay needed)
Scenario 2 and 3 screenshot:

Scenario 1 screenshot:

As you can see there is no request captured in wireshark even though I am using exact codes from scenario 2 and 3.
So I guess that explain why ipcfg_bind_staticip wasn't able to capture an error in Scenario 1. The big question is why is it behaving differently on this setup. I read somewhere that some experienced this problem before with different routers. I just don't know how true. I am using MQX4.0
Further on scenario 1, I can ping PC connected in router B if my PC is connected in router A. I can share resources as well.
I tried ipcfg_bind_dhcp_wait on devices connected to both routers A and B just to get returned IP settings(ipcfg_get_ip). Both have the same netmask and gateway.
Any ideas where can I start to debug?
Thank you very much for the help.
Regards,
vines