Network problem
-
hi all; i got a serious problem; iam making network application and am tring to send udp messages from any node on internet to node in local lan who has access to internet through serial router. the problem is when i started to transmite messages i found that i recieves his messgaes but he can't. when i traced the program i found that his ip and port is diffrent than what i bounded it on. of course the ip is the external ip of lan to connect to internet but the surprise here is even port changed!!!!!!!. i can know from udp socket the ip and port of sender but i need to know before sending or recieving becouse there is main server who control all operations and sends those info between node to communicate. so my question is how can i know virtual ip and port of node in local lan who deal through them to internet? thx for your time. marcoryos