So i want to make one application send data to the other via wi-fi. Since IPs are private, for the devices that are used to run the apps on, i figured i should go with something like this in order to make the two apps communicate:
App1<——>RemoteServer<——->App2
I need help to setup the server that would just receive data from App1 and forward them to App2. I suppose i should use sockets for both apps, do i have to use 2 sockets? How do i pass the data that i receive from app1 to app2?
I will be using Java.
Ty in advance.
Yes, two sockets would be the right thing (if you don’t want to tunnel via HTTP or similar).
Add some exception handling, stream closing and logic 🙂