Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8661055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:24:13+00:00 2026-06-12T16:24:13+00:00

I want to control a robot from the web, the robot is connected to

  • 0

I want to control a robot from the web, the robot is connected to Android device. The operation will be as the following :

  • a web application written using JavaScript and HTML runs on desktop computer which takes the keyboard input from the user and send them to the android device connected to the robot.

  • the android device receive the commands and then send them to Arduino board which used to control the robot.

But how should I deliver the data to the Android device which doesn’t has a static IP address?

I have two approaches to solve that :

  1. the JavaScript application sends the keyboard input to a web server runs PHP and MySQL , then the php application store the data on the MySQL database. An application runs on Android connected to that web server and extract the data from the MySQL database.

  2. the JavaScript sends the data to the web server. The android application connected to the web server receives the data directly so the web server is just used as a relay.

The first approach is easy to do but its slow , so my question is…

How to implement the second approach and which web technologies should I use to implement it? And how to make the web server works as relay between two sides?

PS : I am planning to use 000webhost.com as web server. so I will not use my own server

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T16:24:15+00:00Added an answer on June 12, 2026 at 4:24 pm

    You can either have your Android application poll the webserver for outstanding commands. This is a little inefficient in terms of data usage, but if you’re on an unlimited 3G plan / wi-fi, you could live with it. It will be very easy to implement.

    Alternatively, set up a TCP server on your server, and have your Android application open a socket connection with the server. This way, your web application can send commands to the server which will immediately stream them to the Android device. It will be slightly harder to implement, but will be more efficient and robust if done right.

    PS – Most shared servers don’t allow you to open a TCP server on your host so you might be forced to go with the first option.

    PPS – I wasn’t aware of Google Cloud Messaging. It seems to be a good solution for you what you’re attempting to achieve. You should have a look into it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please help me implement access control lists for my PHP web application. I'm using
i have robot and want to control it via internet using radio wave ..
I want to control the mouse pointer with my application and be able to
I want to control domainUpDown as spinner to control value from 0 to 800
I am building a custom web panel control for specific purpose.I want the control
I am working on robot which has to control using wireless serial communication. The
I want to create an application on Facebook, after doing like the tutorial from
I'm writing an app to control my robot with my Android phone over Bluetooth,
I'm writing a Bluetooth remote control application to control my Bluetooth enabled robot, but
I want to derive a control from a derived user control but having problems

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.