View Single Post
Posts: 356 | Thanked: 172 times | Joined on Jan 2010 @ Canada
#167
Originally Posted by handaxe View Post
This will work over the WAN but crucially your receiving firewall will need to cooperate and you will need to mod the .spd file according to the setup at the transmitting end regarding NAT. Assuming the target PC is NATed behind a firewall, the receiving FW (the target IP address) will need to admit and pass on traffic (udp or tcp depending on what the script does) to the target port.
If the sending phone is behind a firewall, then that firewall will provide the IP for the .sdp file. Thus the auto-generated. sdp will not be suitable. Trying this over mobile internet will likely result in a NAT-like situation, where the APN assigned IP of the n900 will not appear as the transmitting one.
So some fiddling around will get it working. And tcp might prove more robust than udp depending on the firewall setup.
Thanks for that. I think I've been doing what you describe, but it's still not working for me. Just to be sure, here's what I've tried:

- My local router configured to forward port 5000 tcp/udp to my N900's IP address

- The remote router configured to forward port 5000 tcp/udp to the receiving machine's IP address (ie: the DHCP address assigned to the computer on its local network)

- "Address" field in PhoneStreamer set to IP address of the remote client (ie: the address assigned to them by their ISP)

- Modified the .sdp file so that MY ISP-assigned IP address is the one to be used by VLC

- Sent the .sdp file to the remote computer and used it to launch VLC on the remote machine

Nada.

One puzzling thing I discovered while fiddling around with this is that if I use my dyndns name in the SDP file and start a local stream, VLC will find my N900 and connect just fine! Same with using my ISP-assigned IP address -- as long as the source and target of the stream are on MY network, VLC will happily go out to the internet to find the stream and connect it...

I admit to having only a very basic understanding of how this networking stuff works, but that's got me really confused since it seems to suggest the port-forwards are working as intended.

Any ideas?