View Single Post
Posts: 162 | Thanked: 351 times | Joined on Apr 2006 @ Cotswolds, UK
#1
I created a small hack to allow the Media Player to see a DLNA Media Server which is the other side of a router which does not forward multicast messages. This is not a DLNA Remote Access implementation, and it doesn't handle NAT, firewalls, etc. It is just for cases where you have IP connectivity between the N900 and the media server but the multicast messages can't get through.

The hack is a python script which you run on your N900 (it runs on MeeGo as well). By default it only advertises the server to the local device although there is an option to advertise to the whole network (the part the multicasts can reach, anyway).

To install it, get the .zip file attached to this post, unzip it and you will find a file called ssdp-fake.py. Copy that to your home directory on the N900, open an Xterm and run it as "./ssdp-fake.py <server>", where <server> is the IP address or hostname of your media server.

I created this for my own use and I have only ever tested it with my server which is running MiniDLNA. If it doesn't work for you, sorry! Some people may still find it useful as a base to create a better program.

Be aware that the script does NOT follow the DLNA rules for the messages. It is a quick hack. In particular, I do not recommend running more than one copy (for example to announce more than one server) each using the "-a" option as they will end up syncing their announcements (I should be randomising the delays but I am not).

[This is also my first python program so I apologise for the horrible coding styles]
Attached Files
File Type: zip ssdp-fake.zip (2.0 KB, 375 views)
 

The Following 7 Users Say Thank You to Graham Cobb For This Useful Post: