Zend certified PHP/Magento developer

How do I Write a program that communicates over a local network? [closed]

I haven’t been able to find any kind of tutorial on how to just send data over a network. I don’t want to do anything crazy yet, I just want to write a program that sends e.g. a character to an instance of the same program on another computer in my local network.

I’m new to networking. I’ve been studying the TCP/IP model. I generally understand how computers in the same LAN communicate, but I still have no idea how to write a program that just says my NIC to send specific bits to a specific MAC adress. I suppose that my problem is that I can’t find any information on communication between the application layer and the transport layer. Thank you for your time, and if you think that my question arises from my lack of knowledge, then please provide me with some links to actual sources of that knowledge, because I seem be lost in the whole topic of networking.

P.S. I’m sorry if I made any language mistakes, I’m not a native speaker.

EDIT 1: I didn’t specifie that I want to do it on the lowest possible level, with the least amount of built-in libriaries, so I will fully understand the topic.