EXAMPLE : ANDROID SERVER and PC CLIENT
This example demonstrates a server created on your Android phone. Your PC will act as a Client. Thus the PC will log onto the phone server so as to send string messages to each other.
Included in this example is a Windows executable to facilitate the communication on PC side as the Client :
"ClientToAndroidServer.exe" and "HotSpotManager.exe"https://sites.google.com/site/rfodesigner/
How to test :
The phone and the PC have to be on the same WiFi LAN. You can use your WiFi router as the LAN but then you would most probably also be connected to the internet if the PC was setup this way. Alternatively you can use "HotSpotManager.exe" to create a WiFi hotspot on your PC with the PC's WiFi as the pipe with zero internet connectivity for your safety. Your phone should be connected to either WiFi spot before creating the server with the appropriate button. Even better is to connect to the same WiFi spot before executing the phone server app. Once you created the server then the phone will display the server's IP address. This IP address must be entered into the appropriate textbox on the Windows app following with a "Connect Button" action. The Phone and the Win app will acknowledge this connectivity. Then you can send text messages back and forth as you wish.
Then for you to explore is how to send files to each other. Also how two phones could be used with one as server and the other as client.
Below some screenshots of the events in sequence, left to right, row by row.