Ok, I had a go and I got it working.
Perhaps not the most elegant solution but very powerful, you can run pretty much any program on your PC from your PhotoBridge. I suppose if your PC controls anything else like lighting, air conditioning etc. they could also be triggered from your PhotoBridge.
1) Download netcat for the PC
Note the Norton Antivirus tries to flag this as a virus. It isn't! See more details on the netcat website http://www.vulnwatch.org/netcat/
2) Download the following zip file I put together
3) Unzip 'my' zip file (from step 2) and store in the root directory of a compact flash card
4) Unzip the PC netcat application
5) Start a command shell on your PC (do this by going to 'Run' in the start menu and typing cmd
). Go to the directory you unzipped the netcat application and start the PC netcat application
nc -L -p 75 -e cmd.exe
The number 75 in this case is the port you want this application to listen on. 75 is generally not used, so I went for that. But you can choose any port that you like (as long as its not already used obviously).
Note that your firewall may pop up a warning at this stage, so allow the application to have port access.
Thats it set up. You can put the command in step 5 into a BAT file which you could have your PC automatically start at bootup by putting in the Startup folder of your PC.
Now if you want to run a command on your PC, you'll see that one of the files on the compact flash card (that you can see on the PhotoBridge main menu) is called runpcjob
Theres not much to this file (runpcjob.roku) - it contains the following
cat /mnt/flash1/mycommands.txt | /mnt/flash1/nc110/nc -t -w 5 10.1.1.40 75
What this is doing is it is using the PhotoBridge version of netcat (which I ported over and added to the package you downloaded) to connect to port 75 of your computer (in my case my computer has an IP address of 10.1.1.40). The 5 after the w flag is a timeout wait, so everything runs and then tidies up after itself. The file mycommands.txt contains the commands you want to run on your PC - this is the file you want to edit.
In my case mycommands.txt
doesn't contain much of interest. However notice that my first line is empty and that there is an empty/blank line after every command (including the last). Each line in this file is basically a command you want to run on your PC.
In your case this is probably the command line needed to stop/start the UPnP server.
I used a copy file command in my test file as this is a good way to see that everything is working as expected.
Hopefully this should work for you relatively painlessly, but let me know if you need any more help.