I have developed a program in an academic project. This program includes a client and a server portion and aims to allow two notebooks to exchange information in an adhoc network:
- The program should establish an adhoc connection with another computer
- The program should send a message to the other computer through the adhoc connection
I did the first step. I developed a program that uses Windows WLAN API to connect to an adhoc network. The problem is the second step. I want to use Sockets API to send the message. Therefore, I need the IP address of the other computer. How can I get the IP address of this computer in an adhoc network?