Take the 2-minute tour ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

I created an Ad-Hoc network for my phone because my router doesn't reach far enough. This works just fine.

Only problem is that I have a Raspberry Pi as a media-player which I want to access through airplay. I however cant since I'm not on the same network.

I'm pretty sure I should be able to link my Ad-Hoc Network to my Local Network through sharing or what so ever. Unfortunately I have no clue as to how.

I was hoping that someone might know the answer to my problem.

share|improve this question

migrated from stackoverflow.com May 9 at 14:25

This question came from our site for professional and enthusiast programmers.

    
When you say adhoc to your phone, is that to get internet to your Pi via GPRS/EDGE/3G? The only thing I can think of is putting another Raspberry Pi near the edge of your Wireless range, make it work like an Access Point extender, and connect to that, so that you are in the same network range. But streaming media will be terrible, adhoc, bridged or exteneder via WiFi. Maybe you can run a LAN cable? It will be much easier, then you can create an access point on the current Pi, and stream using Airplay form whereever –  ppumkin May 9 at 15:25

1 Answer 1

It sounds like you have connected your Pi to your mobile phone to give it internet access. Ad-Hoc is a one-to-one network connection, so the topology looks like this.

enter image description here

So an easy way is to get a Wireless range extender. If you are within the same building, but don't have access to the main router for some reason? This makes sense, but the max speed is not true max speed any more, it will be less than connected to the main router.

enter image description here

But if you can run a cable from the router, or from your extender (usually they have a 4 LAN ports) but you can also use PowerLine LAN, this will give you pretty good results on speed. Then make your Pi work like an access point for other devices to connect. The advantage is that everybody and every device is on the same network now, and you can airplay from wherever you are connected, even remote Wifi, with a LAN backbone to the main router.

There is a fantastic write up in MagPi magazine, Issue 11, on how to set up your Pi as a Pi-Point as they coined it. But you may want to skip setting up DHCP server or DNS, since you want your main router to keep all devices registered and happy in one place, so that everybody can talk to each other. DNS on the Pi will be the IP of the main router, since the main router can tell you who is on your network, or lookup internet domains. It works pretty good.

enter image description here

And purposely I left the answer to your question last, because it is the most complicated and awkward way to setup a network. It may seem like the right thing to do, but you should realise, ad-hoc, in it self mean peer-to-peer. So thats it, you cant connect more in between there. What you can do, though, and this is the complicated and awkward part, is to bridge your adhoc network with your main network. But, you said you cant connect yo your main network, so you have to do one of the steps above before you can bridge with anything. But that will solve the whole problem of network issues anyway.

Essentially, the answer to your question, as it stands, is No.

share|improve this answer

Your Answer

 
discard

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