Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > iPhone, iPod and iPad > iPhone > iPhone Tips, Help and Troubleshooting

Reply
 
Thread Tools Search this Thread Display Modes
Old Mar 6, 2011, 08:43 AM   #1
alvse
macrumors regular
 
Join Date: Nov 2008
iTunes Home Sharing to iPhone over VPN (3G)

Does anyone know if this will work, so far I've tried with iVPN and successfully connected to the network with the iPhone, but I cannot get the home sharing to work (iOS 4.3 GM).

If anyone has got this working over 3G (or remote wifi), pointers to where I've gone wrong would be great...

Home Sharing on the home network is working brilliantly... now to try to take it on the road (I've been using Zumocast previously).
__________________
flickr | www.alvse.com
alvse is offline   0 Reply With Quote
Old Mar 6, 2011, 01:43 PM   #2
RSully
macrumors member
 
Join Date: Mar 2011
Unhappy

I'm also interested in using HomeSharing over VPN. I too have iVPN installed on a Mac Mini at home, with iTunes 10.2 running at all times with all of my movies.

I'm not worried about my internet speed, as I can mount the Mini from my laptop and play a movie remotely without any lag.

I not only tried the iPhone, but my Macbook, connected to the VPN. Still no dice, doesn't show up on iTunes.
RSully is offline   0 Reply With Quote
Old Mar 6, 2011, 02:36 PM   #3
JonHimself
macrumors 68000
 
JonHimself's Avatar
 
Join Date: Nov 2004
Location: Toronto, Ontario
I'll add my name to the list of people wanting this to work..

I set-up iVPN as a PPTP (I suppose I might as well try L2TP and see if it's different) and was able to connect to my computer over 3G. Using iTeleport I was able to connect to my Mac Min as if it were a "local computer" (I turned off the VPN on my iphone to make sure and I was unable to connect without the VPN connection) but nothing shows up in the iPod app for Home Sharing.

As a further test, I connected to the VPN, turned on personal hotspot and then connected to that using my iPad. Again I was able to see my computer as a "local computer" but unable to see Home sharing in the iPod app.

Does anyone have Snow Leopard Server to try out that VPN host?

I've been reading that it might have to do with being on the same subnet.. but not entirely sure what that means/how to adjust that.
__________________
shambo, Changing the definition of "future proof" since April 2009.
JonHimself is offline   0 Reply With Quote
Old Mar 6, 2011, 03:12 PM   #4
AshleyUk
macrumors newbie
 
Join Date: Jun 2010
Surely apple just built in that you have to be connected via WIFI for it to work?
AshleyUk is offline   0 Reply With Quote
Old Mar 6, 2011, 03:17 PM   #5
RSully
macrumors member
 
Join Date: Mar 2011
Quote:
Originally Posted by JonHimself View Post
I set-up iVPN as a PPTP (I suppose I might as well try L2TP and see if it's different) and was able to connect to my computer over 3G.
I'm also using PPTP. Can't using L2TP since MobileMe uses that port on my router. (Incase it matters, I have Back to my Mac setup on both of my machines)


Quote:
Originally Posted by JonHimself View Post
Does anyone have Snow Leopard Server to try out that VPN host?
A VPN server is a VPN server. If I recall, iVPN uses the VPNd built into the OS, as would SL Server.


Quote:
Originally Posted by JonHimself View Post
I've been reading that it might have to do with being on the same subnet.. but not entirely sure what that means/how to adjust that.
I googled around and found something like this too, might be worth looking into. If I remember my iVPN setup, all of my IPs are on 10.0.1.x, same as my router. I just have my router setup to go from x to y, and iVPN from y+1 to z.




Quote:
Originally Posted by AshleyUk View Post
Surely apple just built in that you have to be connected via WIFI for it to work?
Well, I'm sure Apple is assuming you're on the same network (which is why I'm curious why VPN won't work). Wifi or ethernet won't matter.
RSully is offline   0 Reply With Quote
Old Mar 6, 2011, 03:25 PM   #6
AshleyUk
macrumors newbie
 
Join Date: Jun 2010
Quote:
Originally Posted by RSully View Post
I'm also using PPTP. Can't using L2TP since MobileMe uses that port on my router. (Incase it matters, I have Back to my Mac setup on both of my machines)



A VPN server is a VPN server. If I recall, iVPN uses the VPNd built into the OS, as would SL Server.



I googled around and found something like this too, might be worth looking into. If I remember my iVPN setup, all of my IPs are on 10.0.1.x, same as my router. I just have my router setup to go from x to y, and iVPN from y+1 to z.





Well, I'm sure Apple is assuming you're on the same network (which is why I'm curious why VPN won't work). Wifi or ethernet won't matter.
Yeh I can understand what you mean, but at the same time if your Iphone is connected to Wifi and have the ipod app open and start Itunes it appears within a few seconds. So there must be some type of background searching going continously? If this was all the time you'd be adding up to network usage constantly while the Phone is on, including abroad e.t.c

Wouldn't surprise me if they just litterly limited the searching for Itunes function to Wifi connected only.
AshleyUk is offline   0 Reply With Quote
Old Mar 7, 2011, 07:06 AM   #7
JonHimself
macrumors 68000
 
JonHimself's Avatar
 
Join Date: Nov 2004
Location: Toronto, Ontario
Quote:
Originally Posted by AshleyUk View Post
...Wouldn't surprise me if they just litterly limited the searching for Itunes function to Wifi connected only.
I wouldn't be either. Despite the process of setting up a VPN likely being reserved for a small percentage of customers, I would imagine that the record labels wouldn't be too happy if this could be accomplished.
I was reading that people seem to have been able to set this up using a computer (instead of the iPhone). From a different network, they connected over VPN to their home computer and their home library showed up in iTunes on the other computer.
__________________
shambo, Changing the definition of "future proof" since April 2009.
JonHimself is offline   0 Reply With Quote
Old Mar 8, 2011, 07:56 AM   #8
Orge
macrumors member
 
Join Date: Jun 2004
I haven't tried this out myself with a vpn connection, but the problem is probably that the bonjour broadcast messages aren't travelling down the tunnel and alerting the ipod client. There some information at this link for configuring third party software to manually send a request - it may require some technical knowledge to get set up, but I haven't followed Neil's directions yet myself:

http://www.tuaw.com/2011/03/02/itune...me-sharing-im/

If I make any progress, I'll post some further instructions.

Hope that helps!

J
Orge is offline   0 Reply With Quote
Old Mar 8, 2011, 09:51 PM   #9
alvse
Thread Starter
macrumors regular
 
Join Date: Nov 2008
Quote:
Originally Posted by Orge View Post
I haven't tried this out myself with a vpn connection, but the problem is probably that the bonjour broadcast messages aren't travelling down the tunnel and alerting the ipod client. There some information at this link for configuring third party software to manually send a request - it may require some technical knowledge to get set up, but I haven't followed Neil's directions yet myself:

http://www.tuaw.com/2011/03/02/itune...me-sharing-im/

If I make any progress, I'll post some further instructions.

Hope that helps!

J

sweet.... I too have a feeling its a bonjour issue...

still tinkering with it in my spare time too... will let you guys know if I find a way to do it...
__________________
flickr | www.alvse.com
alvse is offline   0 Reply With Quote
Old Mar 10, 2011, 09:08 AM   #10
zaxxon72
macrumors newbie
 
Join Date: Oct 2007
Nice solution Neil has there. But he says himself that this is only for music.

So what can we do about Home Sharing (for videos, for example)? Any way to forward the mDNS/Bonjour traffic over the vpn?
zaxxon72 is offline   0 Reply With Quote
Old Mar 10, 2011, 04:30 PM   #11
Orge
macrumors member
 
Join Date: Jun 2004
Having had another look at neils instructions and played around with this on my setup, this isn't an answer to this problem... it will only work for a computer connecting to another iTunes share over VPN, as the beacon software does not have an equivalent for an iphOnr (that I have been able to find).

What is needed is a bonjour advertising application for the iPhone...

J
Orge is offline   0 Reply With Quote
Old Mar 10, 2011, 07:06 PM   #12
jon.christopher
macrumors newbie
 
Join Date: Mar 2011
Quote:
Originally Posted by Orge View Post
Having had another look at neils instructions and played around with this on my setup, this isn't an answer to this problem... it will only work for a computer connecting to another iTunes share over VPN, as the beacon software does not have an equivalent for an iphOnr (that I have been able to find).

What is needed is a bonjour advertising application for the iPhone...

J
Would this help? Please try and let us know, because VPN-based iTunes Home sharing would be awesome. In case the link goes stale, this link is refering to Network Beacon at http://uneasysilence.com/yM
jon.christopher is offline   0 Reply With Quote
Old Mar 10, 2011, 07:19 PM   #13
powaking
macrumors 6502
 
Join Date: Jul 2008
I believe it has something to do with iTunes not broadcasting over a routable address. Have you tried setting up a VPN to your router instead of your machine?
__________________
White/Silver 32gb iPhone 5 iOS 7.0.4 jb 2007 MacBook Pro 2014 13" rMBP
powaking is offline   0 Reply With Quote
Old Mar 11, 2011, 02:43 AM   #14
Orge
macrumors member
 
Join Date: Jun 2004
I'm fairly confident the network beacon instructions linked above are wrong... I believe network beacon needs to run on the client (the iPhone), rather than the server. Since there doesn't appear to be an equivalent app for the iPhone, I dont know what other options there might be?

It's possible that, with certain router hardware, we may be able to forward the broadcast packets via a static route. However, this would be both technically difficult and could swallow outgoing bandwidth without suitable filtering. Certainly not for the faint hearted!

In answer to powaking, yes the problem is as you describe, but it's inherent to the way a vpn tunnel is set up, so there shouldn't be any difference between a router or computer based connection. Indeed, my VPN link is through a router and it isn't working.

The only other thing I can think of is a hamachi/back to my mac type solution... these use a different technique to punch through the firewall and may be more successful for this application?

J

Hamachi type access to the
Orge is offline   0 Reply With Quote
Old Mar 12, 2011, 02:46 PM   #15
rado0x54
macrumors newbie
 
Join Date: Mar 2011
Cool Well this is hard...

@Ogre network beacon is just a bonjour announcer and has to run on the network side, where the announcements are missing (client network). It doesn't even need to run on the iphone itself, but can run on a Mac in the same Network (assuming the iPhone is connected per Wireless in this network).

But in general, this is a hard problem that I was fighting with for years. Before solving it for the iPhone you should try to get it working for a Mac VPN connection. And it's my believe that it's impossible to do with PPTP or L2TP.

Problem is the VPN Server, which always has to route the package to and from the target network.

e.g. My L2tp Server has IP 192.168.184.59. iMac with HS and iTunes Library 192.168.184.11. Client (e.g. Macbook) gets 192.168.184.80 assigned from the VPN Server.

If you do a traceroute from the client (Macbook), you'll see it always takes 1 hop:

$ traceroute 192.168.184.11
traceroute to 192.168.184.11 (192.168.184.11), 64 hops max, 52 byte packets
1 192.168.184.59 (192.168.184.59) 73.990 ms 70.363 ms 69.136 ms
2 imac.XXXX.lan (192.168.184.11) 79.933 ms 70.047 ms 71.875 ms

I spend many hours to get the VPN Server to route the bounjour stuff over the link. (e.g. Settings up an announcment service (repeater) on the VPN Server). But always failed. If someone gets it working.. please let me know.

Well if you want it working, you need OpenVPN. Since an OpenVPN Server does not create a new Network Interface on the Server for each Client connection, but rather works with a constant interface that is BRIDGED to the Interface of the Subnet Things work much(!) smoother and all the Bounjour stuff works just fine (HomeSharing, Remote, AirPlay etc...).

If I do a traceroute from the client know, I can see that there is no actual routing taking place on the VPN Server.
$ traceroute 192.168.184.11
traceroute to 192.168.184.11 (192.168.184.11), 64 hops max, 52 byte packets
1 imac.XXXX.lan (192.168.184.11) 70.129 ms 69.211 ms 69.275 ms

Nice. Long Story Short. Jailbreak your iPhone and use OpenVPN .
rado0x54 is offline   0 Reply With Quote
Old Mar 14, 2011, 01:58 PM   #16
iWizzard
macrumors regular
 
Join Date: Mar 2007
rado0x54: Nice will look in to this
It seem that the access server is running on a linux machine or a VM.
I have my Itunes installation on a Windows 7 virtual machine. So the connection would be.

Iphone -> OpenVPN Access Server <- Windows 7 (via open vpn client)

or is there an open vpn server for windows that I did not find?

Edit: When I think about it, OpenVPN Access Server and Windows 7 is on the same network so no connection between them should be necessary.

PS: is there a free openvpn client for ios? the one I found seam to cost money. It is called GuizmOVPN

Last edited by iWizzard; Mar 14, 2011 at 03:45 PM.
iWizzard is offline   0 Reply With Quote
Old Mar 15, 2011, 02:30 PM   #17
rado0x54
macrumors newbie
 
Join Date: Mar 2011
OpenVPN

Hey iWizzard,

unfortunately I don't actually have an openvpn client on my iphone. I connected whole subnets, so every computer in my place can talk to every computer at my parents place. On the one side there's an linksys WRT54GL as Router and OpenVPN Client whereas my parents have a linux router with OpenVPN installed.


As I see your setup would be

iPhone <-> INTERNET <-> Router (Home) <- (forward)> OPENVPN Server

Since you are apparently already using VMs I would just setup a Linux machine for OpenVPN and forward the required ports from your home router.

You may need to activate "presumptuous Mode" in your VMware Options. Otherwise bridging won't work.

After connection your iPhone can reach every computer in your home. Then, of course, don't need to connect to the VPN Server. .

Good luck.
rado0x54 is offline   0 Reply With Quote
Old Mar 18, 2011, 07:31 PM   #18
spankym
macrumors newbie
 
Join Date: Sep 2010
Something like this: http://blog.iharder.net/2009/09/28/i...unes-over-ssh/ ported to iPhone/iPad could make this work. I wouldn't expect this in the app store so for jailbroken phones only, if ever. VPN in and of itself is not enough since this type of traffic doesn't traverse VPN in a regular configuration. Bonjour uses multicast DNS and the above linked trick is a good example of how to make Bonjour work across a tunnel, albeit only for Mac not for iPhone. Probably apple will allow something like this eventually through their rumored cloud based music plans. http://gigaom.com/apple/apples-cloud...-subscription/
spankym is offline   0 Reply With Quote
Old Apr 3, 2011, 08:03 PM   #19
todaystechblog
macrumors newbie
 
Join Date: Apr 2011
Question Network Beacon?

So does this program work? I need to get a router that supports VPN, but found some reference to Network Beacon here which sounds potentially promising. I'm going to have a go at this soon and will post my findings. Thanks for the feedback so far!
todaystechblog is offline   0 Reply With Quote
Old Apr 10, 2011, 06:04 PM   #20
sim667
macrumors 6502a
 
Join Date: Dec 2010
Quote:
Originally Posted by todaystechblog View Post
So does this program work? I need to get a router that supports VPN, but found some reference to Network Beacon here which sounds potentially promising. I'm going to have a go at this soon and will post my findings. Thanks for the feedback so far!
Yes you can make it work using network beacons and these instructions

You will however need to assign your machine a static ip.

Have fun
__________________
Mac Pro, Macbook Pro, G4 Powerbook, iPad 4, iPhone 5, 2X TV, Nikon D800, ACSP Trained - Photography and Mac tech
Music and UK festival Blog
sim667 is offline   0 Reply With Quote
Old Oct 3, 2011, 11:20 PM   #21
huntson
macrumors member
 
Join Date: Oct 2005
Quote:
Originally Posted by rado0x54 View Post
@Ogre network beacon is just a bonjour announcer and has to run on the network side, where the announcements are missing (client network). It doesn't even need to run on the iphone itself, but can run on a Mac in the same Network (assuming the iPhone is connected per Wireless in this network).

But in general, this is a hard problem that I was fighting with for years. Before solving it for the iPhone you should try to get it working for a Mac VPN connection. And it's my believe that it's impossible to do with PPTP or L2TP.

Problem is the VPN Server, which always has to route the package to and from the target network.

e.g. My L2tp Server has IP 192.168.184.59. iMac with HS and iTunes Library 192.168.184.11. Client (e.g. Macbook) gets 192.168.184.80 assigned from the VPN Server.

If you do a traceroute from the client (Macbook), you'll see it always takes 1 hop:

$ traceroute 192.168.184.11
traceroute to 192.168.184.11 (192.168.184.11), 64 hops max, 52 byte packets
1 192.168.184.59 (192.168.184.59) 73.990 ms 70.363 ms 69.136 ms
2 imac.XXXX.lan (192.168.184.11) 79.933 ms 70.047 ms 71.875 ms

I spend many hours to get the VPN Server to route the bounjour stuff over the link. (e.g. Settings up an announcment service (repeater) on the VPN Server). But always failed. If someone gets it working.. please let me know.

Well if you want it working, you need OpenVPN. Since an OpenVPN Server does not create a new Network Interface on the Server for each Client connection, but rather works with a constant interface that is BRIDGED to the Interface of the Subnet Things work much(!) smoother and all the Bounjour stuff works just fine (HomeSharing, Remote, AirPlay etc...).

If I do a traceroute from the client know, I can see that there is no actual routing taking place on the VPN Server.
$ traceroute 192.168.184.11
traceroute to 192.168.184.11 (192.168.184.11), 64 hops max, 52 byte packets
1 imac.XXXX.lan (192.168.184.11) 70.129 ms 69.211 ms 69.275 ms

Nice. Long Story Short. Jailbreak your iPhone and use OpenVPN .
care to share exactly how to set this up?
huntson is offline   0 Reply With Quote
Old Mar 11, 2012, 09:29 AM   #22
eurobum
macrumors member
 
Join Date: Feb 2012
Bump.

Has this been made possible/easier to achieve?
eurobum is offline   0 Reply With Quote
Old Mar 14, 2012, 09:23 AM   #23
Pinksteady
macrumors regular
 
Join Date: Aug 2008
I've successfully set up EasyVPN on my Mac Mini, forwarded the ports, and can now access local resources via VPN on my iPhone/iPad.

Now I need to get the iTunes sharing working. I've set up the Network Beacon service and opened the port, but the Music/Videos apps still can't see the shared iTunes library.

Interestingly, iTunes running on the host shows a new shared library of itself(!) because it is picking up the Network Beacon broadcast. Either the broadcast is not reaching the outside world, or there is some additional step I need to do to allow my iPhone to access the library.

Any suggestions?

Last edited by Pinksteady; Mar 14, 2012 at 10:03 AM.
Pinksteady is offline   0 Reply With Quote
Old Aug 31, 2012, 07:01 PM   #24
gsuking
macrumors newbie
 
Join Date: Aug 2012
Just use File Explorer to access your iTunes files

If you have successfully used ivpn to connect to your home network why just browse directly to your iTunes folder using File Explorer.

/Users/your user name/Music/iTunes/itunes media

In order to do this you will need to:

1) select "Add new Computer"
2) Computer name is the internal ip of the computer that is running has iTunes, DNS Domain is "local". User Name and pass is the same that you use to log into your computer with.
3) You will have to have File sharing enabled on your Mac. Don't worry about adding Shared folders. If your user is an admin you will be able to see all folders including your iTunes folder.

Hope this helps,

F2W
gsuking is offline   0 Reply With Quote
Old Sep 30, 2012, 12:11 PM   #25
macjedimatt
macrumors newbie
 
Join Date: Sep 2012
I have found that the easiest way to access iTunes on an iPhone over 3G is to use Plex Media Server. The iOS client lets you listen to the iTunes library on the server. Seems to work pretty good but I have only been using it for a little while. You don't even need a VPN for it to work.

The only downside I have found so far is that it doesn't do iTunes Genius. You can always save a genius playlist as a regular play list and listen that way.

I'm not trying to promote Plex or anything like that. Just thought I would share this for folks like me who have been stumped by making home sharing work.
macjedimatt is offline   0 Reply With Quote

Reply
MacRumors Forums > iPhone, iPod and iPad > iPhone > iPhone Tips, Help and Troubleshooting

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
iTunes Home Sharing - Can't sync iPhone/iPod from networked Mac? dmk1974 Mac Basics and Help 0 Feb 20, 2014 01:01 PM
Please help with Home Sharing Via VPN. Tomepajk OS X 7 Sep 15, 2013 02:55 AM
Home sharing in iTunes 11 phreden Mac Applications and Mac App Store 11 May 29, 2013 10:37 AM
Sharing iTunes library (not with home sharing) streamkid Mac Applications and Mac App Store 3 Mar 2, 2013 06:33 PM
Can I share itunes match on a family members iphone like home sharing? Bathplug iPhone 4 Oct 2, 2012 03:19 PM

Forum Jump

All times are GMT -5. The time now is 11:51 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC