how could i write a program that would allow me to send messages to computers near me. they would be on the same network, i think i would have to use an ip address... i am a beging programmer, and i just want to do this for fun. if anybody can give me some source code or some guidance it would be much appreciated.

Well, being a beginning programmer, this may not be something you want to delve into just yet...

I'm no expert, but what your trying to do is possible with sockets, most tutorials cover a basic echo server/client anyway, so depending on platform:

Winsock Tutorials (Windows Only):
http://www.madwizard.org/view.php?page=tutorials.networking.contents&lang=cpp

Berkeley Sockets (Other platforms - Solaris (?), *nixes, etc):
http://www.beej.us/guide/bgnet/ (The best one I've found, anyway)

Alternativley, you could take the easy way out and set up a Telnet/Jabber server and go from there without doing alot of coding (Or any, depending on server) :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.