Hey guys, first post. I've read through this whole thread, and haven't seen a solution to my issue. Googling (so far) hasn't helped, either, though maybe I'm missing something obvious because until two days ago I didn't know much about port forwarding, streaming, or anything related to this app. I just knew that my buddy with his AppleTV could stream from his iPhone and his iMac to his TV, and I was like, "I wanna watch the stuff on my media drive on my phone." I already used VLC Player on a Windows XP Pro SP3 machine as my primary media center. My phone is an HTC Sensation. At each stage of getting stuff to work, I had to learn about the necessary settings in routers, firewalls, and VLC, so again... please forgive me if something is either obvious, or if I'm unclear.
Setting up streaming over my home WiFi was pretty easy. Starting VLC's http interface was no problem. I run a software firewall on my media PC (on all my PCs, actually, and it's not Windows Firewall, it's COMODO), and had to set up the following policies in my firewall to get it to work:
Allow any TCP/UDP In/Out From (Media PC's IP & Subnet) To (Phone's IP & Subnet)
Allow any TCP/UDP In/Out From (Phone's IP & Subnet) To (Media PC's IP & Subnet)
I also reserved the IPs for my Media PC and phone in the router so that these settings would always work.
So, next was trying to get streaming over mobile network. After much reading about this, it seemed like the most secure way to do this would be via VPN. As an added security measure, at this point, I set up MAC address filtering on my router (which I knew about from having a buddy who had to add my phone's MAC address to his router to get me on his WiFi a few weeks ago). Both the Media PC's and the phone's MAC address are allowed and seem to connect just fine.
I set up an incoming PPTP VPM connection on the Media PC in accordance with Traveldevel's instructions (I would link them here, but the forum is informing me that as a new user, I'm not allowed), though it was a bit tricky as they're written for windows 7 or vista. I created an account especially for connection via VPN, gave it a username and password, and it is the only account on the Media PC with permissions to connect via VPN. I set up the two IPs within my router's provision range which will be exclusively used for VPN. I then set up forwarding of port 1723 to the Media PC in the router. I set up the two VPNs on my phone using my router's external IP address (non-local) and my Media PC's IP (local). So, I can now log in to the VPN over either WiFi or 4G. Connection is stable, no trouble.
I also added the following rules to my software firewall policy:
Allow any TCP/UDP In/Out From (Media PC's VPN IP & Subnet) To (Phone's VPN IP & Subnet)
Allow any TCP/UDP In/Out From (Phone's VPN IP & Subnet) To (Media PC's VPN IP & Subnet)
If I log into the VPN using the local connection, everything works just fine. I can enter the Media PC's VPN IP, and port 8080, and browse my files and stream media. (Traveldevel suggests at the end of his instructions to disable port 8080, for security, which I don't understand... should I alter the output to some other port? Will it not matter that this port is disabled if I'm doing this via VPN? That doesn't seem to be the way it works, from what I've read about VPNs...)
Here's my problem. If I use the non-local VPN, I get the message "VLC Stream & Convert Connected," and after 7 or 8 seconds (I've timed it) the connection is lost. The VPN connection itself is stable, and the VLC Web Interface settings in VLC S&C should remain unchanged whether I'm on the local or the non-local VPN., correct?
If I select "stop and exit" from the app menu, close the VPN connection, re-open the VPN connection, and re-open VLC S&C, a connection cannot be made. If I close VLC S&C, enter the app manager, force close VLC S&C, and relaunch it having left the VPN connected, a connection cannot be made. However, if I both force close VLC S&C via the app manager AND cycle the VPN connection, I can again establish a 7-8 second connection with VLC player.
I've read about problems with 3G/4G and rtsp streaming, and it seems like someone suggested port forwarding for port 5554 because VLC is sending out packets the phone needs to receive on port 5554 using a huge range of random ports (looking at my firewall's logs, this range seems to be between 30000 and 70000). I'm probably misunderstanding how port forwarding works, but doesn't it route all incoming packets send to the specified port to the specified IP? If this is how it works, I'm not sure how to set up port forwarding on my DLink 615-DIR router, because all I can do is designate a port and a destination IP, when really what I need to do is designate that all traffic coming in along UDP ports 30000-70000 be forwarded to UDP port 5554 on a specified IP, right? Anyway, I tried setting up a port forward for UDP 5554 to my phone's VPN IP, and that did nothing. I tried setting up the same forward for UDP ports 30000-70000, and that somehow broke my wireless... I couldn't log into my router's configuration page from the browser on any computer in the network, I had to power cycle my router and connect with a cable to sort it out.
However, everything I've read where the rtsp stream problem was related to UDP port 5554 (that it needed to be this port, or couldn't be this port and needed to be 554, etc.), the user connects, and it's only when streaming that there is an issue, or the connection fails. My connection is failing immediately, regardless of whether I'm trying to browse, view a playlist, or even if I just let the app sit there and do nothing, 7-8 seconds after connection, the connection is lost.
Looking at my Media PC's software firewall logs, the requests coming in to VLC player from the phone are being passed along properly. There is no apparrent difference, from the firewall's perspective, whether those requests are coming while I'm on the local VPN or the non-local VPN. I can't see the outbound stuff, unfortunately, unless there's a log somehwere I can't see.
Any ideas? I'm completely stumped and, honestly, probably a little out of my element. I'm kind of amazed I've gotten this far.
Oh, and, yes... the problem persists if I shut down the software firewall completely.
Thanks,
Tank
PS - I also just discovered that I can connect to the Media PC's VPN IP using VLC S&C even if my phone is NOT connected to the local VPN. How does that work?