I am dealing with socket programming with C language and Xcode. I can open socket, server and client. I need to learn my machine's Mac address and then, I will send Arp request for server machine.
Almost all examples had been written for linux. I need to solve it in Mac OS.
Currently, I am using these codes with opening two projects and they are able to communicate.
https://www.geeksforgeeks.org/socket-programming-cc/
Could you give some example or information about this problem?