Joined: 09 Nov 2005 Posts: 18 Location: 32339 Espelkamp
Posted: Mon Jan 30, 2006 5:48 pm Post subject: Send to a special IP Adress
Hi all,
with theline like this :
'fremde IP Adresse
Result = Udpwrite(f_ip , F_port , Sockel , "Test")
i can send to the Adress and Port there is in the var f_ip , and f_port, on the Socket there is in the var Sockel.
Thats work fine but only one time. Will say after i have send to the adress, the adress is fix. Never i can send to a nother Adress. I dont belive it , but its true. the Adress in the var:F_ip is not the destination Address, the paket come not to the destination.
The Reason is i have 2 Computers connect to the MCU and both sending a Question to the MCU , and the MCU shout give a Answer to the both Computers. But it sending only to one (the Computer thre was first Connecet to the MCU).
Is this normal or wrong. Have one of You a Problems like this. Need Help/info or a Workaround. Mabee the Problems is on me, so tell me more.
Just an Idea:
Could it be, that you only use one socket? And when the first PC opens that, the second doesnt get a connection and thus no answer.
Regards
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum