I want to connect and transfer data between a PC and an Android device both of which are on the same local WiFi network.
I cannot use the local IP as such in the code to actually get the connection going because it does not remain constant every time. I know I can set the local IP to be constant but I am looking for a more general solution to the problem.
Having a central server is also not what I'm looking for, because I want to transfer data offline.
I am not an expert on networks as you might have already guessed, so if I am missing something out, let me know. Also is there some API in android that could do this?