Reputation: 89
I am writing some code in C, which uses UDP sockets and I want to test it. What I basically want is to run two Windows applications (simply said, 2 .exe files) which would share some bytes between each other by using Winsockets. Could someone tell which ports and which IP addresses (simply broadcast) I could use for that matter? Or I need to use a Linux virtual machine and make a communication between a Windows and Linux application.
Cheers
Upvotes: -2
Views: 2217
Reputation: 474
You want to communicate with two different exe
files either on same machine or different machines.For that you would have to write two different code for a client
and a server
using winsock
.Run the server first and then run client, connect client with the server giving ip address
of your machine and any port on which server is listening (which should be chosen greater than 5000).
Go through the following link for better understanding of implementation https://msdn.microsoft.com/en-us/library/windows/desktop/ms737889(v=vs.85).aspx
Upvotes: 0