0

I mounted a raspberry pi B+ with gps in my car. And I'm using 3G Modem to send data from raspberry to my server. But I want to control raspberry pi over internet. For instance, sometimes I need to change the code and restart. How can I do this?

closed as off-topic by Ghanima, Jacobm001, Bex, joan, mpromonet May 28 '15 at 11:33

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not appear to be specific to the Raspberry Pi within the scope defined in the help center." – Ghanima, Jacobm001, Bex, joan, mpromonet
If this question can be reworded to fit the rules in the help center, please edit the question.

3

In order to control your pi over the internet you need to know what ip it has been assigned. Make sure you foward the right ports if the modem requires it.I would recommend ssh as a way to command/control the pi. As it is a more secure protocol. Other options to control the pi are:

  • You can set up a dynamic dns service on the pi (see here) and ssh into your pi.
  • Set up your raspberry pi as a websocket client to your home that listens for a certain commands from the server.
  • If you don't go with a dynamic ip service you can have it email you the ip address. bash command "curl ifconfig.me" will give you your ip from your isp.
0

If you have access to an Internet-reachable host that will accept ssh, you can create reverse tunnels. There are also services that provide this service. Although I have not used it, I've read that no-ip provides this service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.