500pts: UDP/TCP to send a msg to users of a program?
Posted on 2006-11-10
I wonder if anyone can help, I have a program that is succesfully working, it is used by 100s of users. The program depends on webservices etc so from time to time i must take the program down.
I have no way of informing the users that the program is going offline so i was wondering if i could do this with udp or tcp. UDP i presume is a better choice..
Considering that the users probably don't have a FIXED ip.
Does anyone know of a sample where I could send a msg to 100's of users.
I presume i will have a small server program, and then i will build a small client into my program... this will receive a msg and then i will just used MEssageBox.Show to display it...
My confusion is.... which port do i use? and the server... does it need to send directly to IP (fixed) addresses.... I understand that with UDP i do not need to establish a connection so how would i send the info to the user then?
if there are 3 users for example that are in the same office connected by an adsl router then technically they would have the same IP address so how would this work?
I presume .net Vs2003 supports this?
Thanks in advance for any help