lilzz
Posts: 411
Joined: Sat Nov 30, 2013 5:27 pm

Possible to have Pi as server in a mobile car/

Wed Dec 10, 2014 9:13 am

Wifi tethering is getting on internet,but is it possible to have the pi as server to internet in a car?

ame
Posts: 3172
Joined: Sat Aug 18, 2012 1:21 am
Location: New Zealand

Re: Possible to have Pi as server in a mobile car/

Wed Dec 10, 2014 9:14 am

Yes.

User avatar
DougieLawson
Posts: 39124
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Possible to have Pi as server in a mobile car/

Wed Dec 10, 2014 9:26 am

How do you plan to get the Raspberry Pi connected to the Internet?

Using a cell phone with tethering will be 100 times easier than trying to use a Raspberry Pi as a router.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

lilzz
Posts: 411
Joined: Sat Nov 30, 2013 5:27 pm

Re: Possible to have Pi as server in a mobile car/

Wed Dec 10, 2014 2:03 pm

DougieLawson wrote:How do you plan to get the Raspberry Pi connected to the Internet?

Using a cell phone with tethering will be 100 times easier than trying to use a Raspberry Pi as a router.
My Pi will serves somethings. so cellphone tethering will do?

From outside what ip address or site I should connect to in order to connect to the Pi server?

lilzz
Posts: 411
Joined: Sat Nov 30, 2013 5:27 pm

Re: Possible to have Pi as server in a mobile car/

Wed Dec 10, 2014 2:09 pm

DougieLawson wrote:How do you plan to get the Raspberry Pi connected to the Internet?

Using a cell phone with tethering will be 100 times easier than trying to use a Raspberry Pi as a router.

lilzz
Posts: 411
Joined: Sat Nov 30, 2013 5:27 pm

Re: Possible to have Pi as server in a mobile car/

Wed Dec 10, 2014 2:14 pm

ame wrote:Yes.
How? Server needs static IP address, in mobile environment hw can that be done?

BMS Doug
Posts: 3824
Joined: Thu Mar 27, 2014 2:42 pm
Location: London, UK

Re: Possible to have Pi as server in a mobile car/

Wed Dec 10, 2014 2:46 pm

If you had a 4G dongle and a WIFI dongle connected to the pi you could set the Pi as a WIFI router for internet connections within the car. if you want to use your mobile as the internet connection then you would be better off just pairing whatever you need to the mobile's tethering.

If you just want a WIFI hotspot from a 4G dongle then it will be cheaper to buy a something like this, for a quarter of the price of a pi (still requires an internet dongle.
Doug.
Building Management Systems Engineer.

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Possible to have Pi as server in a mobile car/

Wed Dec 10, 2014 3:03 pm

lilzz wrote:
ame wrote:Yes.
How? Server needs static IP address, in mobile environment hw can that be done?
If your using your cellphone for tethering to the Pi is using Wireless then a RPi will need 2 WiFi Adaptors and be set up as a Router, not easy ;)
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

lilzz
Posts: 411
Joined: Sat Nov 30, 2013 5:27 pm

Re: Possible to have Pi as server in a mobile car/

Wed Dec 10, 2014 9:52 pm

fruitoftheloom wrote:
lilzz wrote:
ame wrote:Yes.
How? Server needs static IP address, in mobile environment hw can that be done?
If your using your cellphone for tethering to the Pi is using Wireless then a RPi will need 2 WiFi Adaptors and be set up as a Router, not easy ;)

ok let's say it setup as such, then from outside what's the IP address I use to access the pi server inside the car. Assuming using the mobile phone tethering.

plugwash
Forum Moderator
Forum Moderator
Posts: 3614
Joined: Wed Dec 28, 2011 11:45 pm

Re: Possible to have Pi as server in a mobile car/

Wed Dec 10, 2014 11:58 pm

Unfortunately most mobile data services only give you a private IP. Also if you use a mobile broadband router or a phone with tethering most likely the phone/router will be acting as a NAT router meaning that even if you got a public IP form the mobile service you would have to set up port forwarding on the router or phone which may be difficult.

There are services that will give you a public IP on a mobile device but they don't tend to come cheap. For example.http://www.aa.net.uk/telecoms-mobile-data.html

The other option which is likely to be more economical is to set up a VPN to a server on a hardwired internet connection. You can then either directly forward the incoming traffic over the VPN using DNAT or alternatively (and probablly more sensible given the cost of mobile data) run some sort of cache on the hardwired server.

Return to “General discussion”