i wana do a client and a host thingy software....

for example:

Client Online---it will update to make the host say Client1 is Online

something like tat...actually i did a program using mysql database and vb to update when its online....but i scared people see from the sent packets from dos...so how can i make a more advanced script ? like socket ? can anyone give me guidence ?