Go Back   Sonos Forums > Sound Ideas

Reply
 
Thread Tools Display Modes
  #1  
Old Oct 30th, 2009, 02:49 AM
grussell grussell is offline
Member
 
Join Date: Oct 2006
Location: London, UK
Posts: 4
Cool iPhone app to use VPN aswell as WiFi

Hey Sonos,

I've got a house full of your kit and I love it. Just got an iPhone and the app rocks too - one small suggestion, it works great while I'm in the house but it would be great if it worked when I'm outside my house too.

I can VPN (via my iPhone) into my house and was trying to get the Sonos app to work to no avail.

Why? Well - I'm often crammed into a cab with friends heading back to mine (because they love the music!) and I'd like to get playlists ready so the house is rocking before I even open the door.

I was looking for somewhere I could pop a fixed IP or something - or perhaps there is something I can do on my home network which will help it working?

Thanks for listening.

Gavin.
Reply With Quote
  #2  
Old Oct 30th, 2009, 03:07 AM
Avee's Avatar
Avee Avee is offline
Moderator
 
Join Date: Oct 2005
Posts: 5,184
Default

Sonos uses upnp to communicate. This relies on UDP broadcasts which can't traverse subnets. This is technically not possible.

The only way to control Sonos via a VPN is when you VPN into your network in "bridge mode". This is a mode where your network adapter is virtually made a part of the remote network, like it were physically in the same network. I don't think many routers support this. I have been able to do this with OpenVPN where my media PC at home was the host.
__________________
All opinions expressed here are my personal views.
I don't work for Sonos, I'm just another satisfied customer.
Reply With Quote
  #3  
Old Oct 30th, 2009, 03:29 AM
mrpon mrpon is offline
Member
 
Join Date: Oct 2005
Location: Cheshire, UK
Posts: 1,208
Default

Or something like Logmein could work, if you leave a PC on in the house with the client running.
Reply With Quote
  #4  
Old Jun 5th, 2011, 01:52 AM
ucdscott ucdscott is offline
Member
 
Join Date: May 2010
Posts: 17
Default iPhone app to use VPN aswell as WiFi

I've search all over this forum and cannot find a detailed answer why I am not able to control my Sonos units at home from my iPhone when connected to my home network via VPN.

I establish a L2TP VPN to my home network. Once connected I am assigned an address on the same local network to which my Sonos units are connected.

I can surf the web using my home internet connection. I can ping my iPhone from any host on my local network, etc. Everything works EXCEPT Sonos. Thus, the question is,

What exactly are the protocols and ports which cannot traverse the VPN tunnel? Are they,

1900 (UPnP advertisements / device discovery)
1901 (UPnP m-search responses)

If so, how can I verify that these packets are indeed being blocked or dropped?

Or has the iPhone app been written so that it only functions when connected to a wireless network,

"Trying to connect to your wireless network..."

Thanks,
Scott
Reply With Quote
  #5  
Old Jun 5th, 2011, 04:36 AM
ratty ratty is offline
Moderator
 
Join Date: Mar 2008
Location: Scotland
Posts: 10,386
Default

If the message is "Connecting to your wireless network..." then it could be that the app is unable to bind to the VPN interface.

A "Searching for ZonePlayers..." message would be consistent with the discovery multicasts not getting through.

You can verify at the home end by running Wireshark and looking out for SSDP/M-SEARCH traffic to destination address 239.255.255.250 (or even 255.255.255.255).
Reply With Quote
  #6  
Old Jun 5th, 2011, 11:12 AM
ucdscott ucdscott is offline
Member
 
Join Date: May 2010
Posts: 17
Default

Hello,

I ran Wireshark and was able to see SSDP traffic but unfortunately it originated from other devices on my network and not my iPhone.

What would cause "the app is unable to bind to the VPN interface?"

<Edit>I just verified that I am able to ping my Sonos units from my iPhone</Edit>

What other tests can I perform?

Thanks,
Scott

Last edited by ucdscott; Jun 5th, 2011 at 11:36 AM. Reason: Added additional troubleshooting info
Reply With Quote
  #7  
Old Jun 5th, 2011, 12:32 PM
ratty ratty is offline
Moderator
 
Join Date: Mar 2008
Location: Scotland
Posts: 10,386
Default

Quote:
Originally Posted by ucdscott View Post
What would cause "the app is unable to bind to the VPN interface?"
In a phone the iController would normally be presented with an interface to the WiFi and an interface to the cellular network. Since cellular would be useless for Sonos, one assumes that it's configured to bind to the WiFi. By the same token it may be case that the iController ignores a VPN tunnel interface.

Look to see if you have any VPN configuration options which might force the iController to use the tunnel.
Reply With Quote
  #8  
Old Jun 5th, 2011, 12:39 PM
Majik's Avatar
Majik Majik is offline
Moderator
 
Join Date: Mar 2005
Location: Berkshire, UK
Posts: 6,010
Default

Assuming the App even works with the VPN interface, you will need to make sure that your router/firewall supports forwarding of broadcast/multicast packets between the local LAN and the VPN. By default most won't have this enabled, and many won't sup[port it at all.

If there is no specific configuration option for this, then it's normally pretty safe to assume that it won't support it.

Cheers,

Keith
__________________
Sonos customer (6 x ZP100, 1 x ZP120, 1 x ZP90, 4 x PLAY:5, 2 x PLAY:3, 5 x CR100, 1 x CR200, 2 x SUB, 1 x Playbar)
I am not affiliated with or representative of Sonos in any way. All opinions expressed are my own!
Reply With Quote
  #9  
Old Jun 15th, 2011, 09:33 PM
ucdscott ucdscott is offline
Member
 
Join Date: May 2010
Posts: 17
Default

ratty/Majik,

Thanks for the replies. I've spent the last week running Wireshark, posting to my router's forum, and tweaking firewall rules. I'm now convinced that I have my VPN server and network configured correctly and that the iController (Sonos iPhone app) is too blame.

The message I am receiving, "Connecting to your wireless network..." and ratty's comments lead me to believe that the Sonos developers have hard wired the app to the wireless interface.

May I ask why your responses appear to be speculative? As moderators can't you simply ask the developers if the app will only bind to the wireless interface?

Thanks,
Scott

Last edited by ucdscott; Jun 15th, 2011 at 09:35 PM. Reason: Corrected punctuation
Reply With Quote
  #10  
Old Jun 16th, 2011, 01:23 AM
Majik's Avatar
Majik Majik is offline
Moderator
 
Join Date: Mar 2005
Location: Berkshire, UK
Posts: 6,010
Default

Quote:
Originally Posted by ucdscott View Post
May I ask why your responses appear to be speculative? As moderators can't you simply ask the developers if the app will only bind to the wireless interface?
Because we don't work for Sonos (check my signature below). We are customers too. The only contact we have with Sonos which is different from other customers is we have some administrative contacts in Sonos support, primarily to discuss policy, technical problems with the forum, and things like spam-busting techniques.

I will take this opportunity to point out that these forums are customer forums for customers to help each other: community support. Occasionally Sonos support will engage here, but these forums are not an official support channel for Sonos.

Cheers,

Keith
__________________
Sonos customer (6 x ZP100, 1 x ZP120, 1 x ZP90, 4 x PLAY:5, 2 x PLAY:3, 5 x CR100, 1 x CR200, 2 x SUB, 1 x Playbar)
I am not affiliated with or representative of Sonos in any way. All opinions expressed are my own!
Reply With Quote
Reply

Tags
iphone, vpn, wifi

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:40 PM.