Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am in the process of creating a carputer which will be controlled via a web browser on my android device. I plan to use a raspberry pi with a USB wireless adapter, which will serve a simple website.

If I use the USB wifi adapter to turn the raspberry pi into an access point/ad-hoc network, can I serve the website from the same device?

At what address (e.g. 192.168.1.1) would I locate the website on my android browser once connecting to the ad-hoc network?

share|improve this question
    
+1 for mentioning carputer. –  Dejan Mar 27 '13 at 19:26
1  
Depending on what OS you run on the PI, and what services, the IP would be whatever IP you configure it to use. Without more details, it would be impossible to figure out more about your proposed configuration to have any kind of meaningful feedback. –  killermist Mar 28 '13 at 0:43
    
Thanks killermist, I'm using Occidentalis v02. –  Rob Gibbons Mar 28 '13 at 4:34
add comment

1 Answer 1

I see no reason why you should not be able to use it. The address would be whatever your Raspberry's IP is. You will need to install and configure a web server on the PI (apache for example). Once the webserver is up and running, any device on the same network as the PI should be able to connect to the webserver using the PI's IP.

As pointed out by J. Novack below, you should also have the PI serve as a DHCP server or set up all devices that connect to the PI's network to have static IPs.

share|improve this answer
2  
You will need to serve DHCP off the RaspberryPi as well so that your Android device (or anything connecting to it) will get an IP Address automatically. –  jnovack Mar 27 '13 at 19:13
    
Thanks for the tip J, do you have any advice to get started serving DHCP? I'm using Occidentalis v02 –  Rob Gibbons Mar 28 '13 at 4:33
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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