Embark on a journey of knowledge! Take the quiz and earn valuable credits.
Take A QuizChallenge yourself and boost your learning! Start the quiz now to earn credits.
Take A QuizUnlock your potential! Begin the quiz, answer questions, and accumulate credits along the way.
Take A QuizKindly log in to use this feature. We’ll take you to the login page automatically.
LoginInternet of Things IoT Frameworks 3 years ago
User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.
No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.
Kindly log in to use this feature. We’ll take you to the login page automatically.
LoginReady to take your education and career to the next level? Register today and join our growing community of learners and professionals.
Your experience on this site will be improved by allowing cookies. Read Cookie Policy
Your experience on this site will be improved by allowing cookies. Read Cookie Policy
manpreet
Best Answer
3 years ago
_x000D_ Have your app try connecting to the Web server at 192.168.10.25 (or whatever local address you pick) first. If there is no answer within a reasonable amount of time (5 seconds should be enough), then connect to the external webserver. For security, you might want to make sure that the webserver at 192.168.10.25 is actually your webserver. You can do this by using challenge and response and public key encryption. I can give more details if you wish. You can try to avoid waiting for the (non-existent) local webserver by looking at your phone's IP address. If it isn't 192.168.x.y, you can assume that you are not local and go directly to the external web site. If you embed 192.168.10.25 directly in your app, then no host lookup is necessary.