refactoredTheCodeForAndroidUDPServer