Loacl WebServer and Android App Loacl WebServer is accessed by Android App. Android app upload text file to local webserver and request text file from local webserver.
- clone repository
$https://github.com/kurramkurram/GoServer.git
- start local webserver
$go run main.go
- Execute the following command to get the ip address of loacl webserver
$ipconfig
- Android Studio File -> Open
- Run
- Set ip address on android app
- Set file name on android app
- Set file contents on android app
- To create select [create] button on android app
- To upload file, select [connect] buton on android app
- If you get toast that is [Upload Success], uploading file is success
- Create a text file in the same directory as main.go on local webserver.
- Set file name for download on android app
- To download file from local webserver, select [download] button
- If you get toast that is [Download Success], download is success
- You can access the file by android studio.