Q:

Client Server Program behind router

I am trying to run client server UDP program .
My both machines are in different networks. I have set up port forwarding in my router.
My server has two IP Address :
1) External 200.?.?.?
2) Internal 192.168.0.100
While creating UDP server I need to create a socket which is binded to addresss.
What address should I bind socket to, external or internal?
I tried with internal address but it is not getting any data from client.
Suggestions...

A:

Given the fact that you said you set up port forwarding, did you assign the proper ports within the UPD program? or are you just sending data to an IP address? If you specify the External IP address and a port number, the port forwarding on your router should send it to the appropriate node on the network.

