[HOWTO] Shield streaming remotely without a VPN

aDigitalPhantom

Senior Member
May 10, 2011
528
118
0
Classified
I don't know if anyone other then me will want to use this, but I borrowed a method for running this as a service on windows from UT2004 and so far it seems to work.
Let me do some more testing and I will update this post then.

Update
I have had no problems using this as a service yet, and do not expect to.

Here are the instructions copy and pasted with some edits for this use from the UT2004 Site.
Link

Obtain these files: Instsrv.exe and Srvany.exe from Microsoft.
Copy them into a directory that has NO SPACES IN THE PATH. I recommend C:\ShieldProxy
Open a Command Window.
Execute the following: PATH_TO\Instsrv.exe NameOfService PATH_TO\Srvany.exe
Open regedit and navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NameOfService to verify the service was created.
Right click on the new service and add a new "Key" named "Parameters"
Now, right click "Parameters" and add the following "String Value"s: AppDirectory, Application, and AppParameters.
Right click each "String Value" and "Modify" them as follows:
AppDirectory: The full path to the application's directory.
Example: C:\ShieldProxy
Application: The full path to the ShieldProxy.exe.
Example: C:\ShieldProxy\ShieldProxy.exe
AppParameters: Any parameters required to start the application to your specifications.
Exit the registry editor.
Go to Start>Run>services.msc, select the new service and restart.

I have also attached the needed files except shieldproxy.exe to use this for the directory C:\ShieldProxy
You will need to download shieldproxy.exe from the first post.

To use the attached files
1. Create the folder C:\ShieldProxy, and extract all 4 files to that directory.
2. Download and extract ShieldProxy to the same folder
3. Run shieldproxy.bat
4. Add the registry entries in sp.reg to the registry
5. Go to Start>Run>services.msc, select the new service and restart.

The batch file simply runs the following command
C:\ShieldProxy\instrv.exe ShieldProxy C:\ShieldProxy\srvanny.exe

The Registry file adds the following entries (that need to be created manually using the above instructions)
Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\ShieldProxy\Parameters]
"Application"="C:\\ShieldProxy\\ShieldProxy.exe"
"AppParameters"=""
"AppDirectory"="C:\\ShieldProxy"
 

Attachments

Last edited:

HobsonA

Senior Member
Dec 26, 2011
91
4
0
Albany
I'm not sure if anyone else has experienced this but after update 63 streaming to an outside network on my 5 Mbit upload no longer seems to be decently smooth and I've always received great performance with the shieldproxy before :(
 

Jdawg529

New member
Dec 4, 2013
1
0
0
A few glitches possibly?

Heya, had to make an XDA forum account just cause this app is soo amazing and a major selling point for the Shield.

Yesterday at my level design course I was able to stream my entire skyrim mod project to my shield while I was at campus no problem, all my classmates were like "What sorcery is this!? Our mod definitely looks alot better on a smaller screen." My professor is a huge gamer too and he thought that was soo cool that he told me he would consider getting one too.

I found a few things out however trying to do this the last few days.

So I really like the idea of having the proxy program open at all times on my computer but it seems after my computer wakes up from sleep mode with the program still open then the program is a bit buggy. I can connect my shield to my PC but when I try opening a game it gives me an error saying Can't connect to *name*.

What fixes it is turning the proxy program off then back on.

I think it would be cool if it always works after waking from sleep because then I use Wake on Lan and let my computer go to sleep when I'm out of the house not using it. Then when I want to game on the shield I open the WoL magic packet app, wake up my computer, then turn on the proxy and game on.

If this would be tricky to code or fix maybe you can make it so the Proxy app can turn the Shield proxy program off and on.

Also I notice now in order to stream to my shield in my own home connection I have to have the proxy program open, otherwise I would get the can't connect problem.
 

prosive

Senior Member
Mar 10, 2010
96
19
0
I had this working perfectly for a bit, but I have been having trouble using the proxy after the update. Is anyone else having issues?

Edit: Somehow my VPNless setup is working again but I don't need to have either of the proxy applications open? I just opened the ports on my router and it connects up just fine? Did Nvidia add this feature?
 
Last edited:

cor3speed

New member
Dec 11, 2013
1
0
0
Black Screen when Streaming

-Port rules set up and double checked
-PC seen and can launch games
-The NV Stream Svc is allowed both priv/pub
-Proxy allowed both priv/pub
-Static IP address (PC and WAN @ Home)
-70 down 12 up home and 38 down 20 up remote
-44ms latency
-Same problem using VPN as well


Figured it out, 35043 was the culprit - I had the internal entry as 35403. This one port caused the video issue for me.
 
Last edited:

cgutman

Senior Member
Aug 14, 2010
485
427
0
Heya, had to make an XDA forum account just cause this app is soo amazing and a major selling point for the Shield.

Yesterday at my level design course I was able to stream my entire skyrim mod project to my shield while I was at campus no problem, all my classmates were like "What sorcery is this!? Our mod definitely looks alot better on a smaller screen." My professor is a huge gamer too and he thought that was soo cool that he told me he would consider getting one too.

I found a few things out however trying to do this the last few days.

So I really like the idea of having the proxy program open at all times on my computer but it seems after my computer wakes up from sleep mode with the program still open then the program is a bit buggy. I can connect my shield to my PC but when I try opening a game it gives me an error saying Can't connect to *name*.

What fixes it is turning the proxy program off then back on.

I think it would be cool if it always works after waking from sleep because then I use Wake on Lan and let my computer go to sleep when I'm out of the house not using it. Then when I want to game on the shield I open the WoL magic packet app, wake up my computer, then turn on the proxy and game on.

If this would be tricky to code or fix maybe you can make it so the Proxy app can turn the Shield proxy program off and on.

Also I notice now in order to stream to my shield in my own home connection I have to have the proxy program open, otherwise I would get the can't connect problem.
I have code that should fix your issue with WoL, but I haven't tested it extensively yet.

Make sure you've stopped the Android Shield Proxy service if you want to use this on your local network. Otherwise the Shield software just remembers the last IP address it received an MDNS response from. This means it will try to connect through your router which won't work without Shield Proxy running on the PC.

I had this working perfectly for a bit, but I have been having trouble using the proxy after the update. Is anyone else having issues?

Edit: Somehow my VPNless setup is working again but I don't need to have either of the proxy applications open? I just opened the ports on my router and it connects up just fine? Did Nvidia add this feature?
Shield Proxy Android just handles discovery of the remote PC. The Shield streaming app remembers the last IP address your computer had, so if it hasn't changed, you won't need it running for streaming to work.

Shield Proxy Windows handles the other side of remote PC discovery and (most importantly) forwarding video and audio data back to the proper destination ports. If you happen to get lucky and the router that your Shield is behind gives you 47998 and 48000 when the Shield tries to connect, video and audio work as expected without Shield Proxy running on the PC. However, this solution is brittle because the router is allowed to assign any arbitrary port number instead of 47998 and 48000. This is the case that breaks, because Nvidia's software always tries to send video and audio back to 47998 and 48000, even if those aren't the ports that the Shield is listening on. Shield Proxy Windows remembers which ports the Shield is using to communicate with the PC and forwards audio and video data on the appropriate ports.
 
Last edited:

Beartax

Member
Aug 26, 2011
14
1
0
I followed every step, forwarded ports properly, and even get it working, then out of nowhere it no longer works..

Steps I've taken:
1. Installed both Shield Proxy for Android, and Shield Proxy for windows, newest versions.
2. Installed winp cap
3. Forwarded all ports listed in the original post to my GeForce PC internal IP. Made sure to double and triple check the numbers and type (UDP/TCP) were correct.
4. Put GeForce pc with 780 Ti in DMZ in the router.
5. Triple checked firewall settings to verify Shieldproxy had private and public access.
6. Got my GeForce PC external IP from whatsmyip and set that in Shield proxy for android, hit start.
7. Got on Wifi at work with Shield (at work I have 30/10mbit, at home my GeForce PC has 55/5mbit) I work literally 4 miles from home.


I've gone over these steps several times and with two other routers, and each time it works pretty great aside from slight input lag, but then an hour or so later, with the same shield proxy for windows program open, It sees my work IP but then it no longer says "Shield is communicating with us" and I can connect to my PC in tegrazone on my Shield (it says it's connected but when I try to launch big picture mode or any game it says Cannot launch Steam, (OK/Troubleshoot dialog box.) And if I press Y for Recent PCs, it only says I've connected 1 hour ago or X amount of hours.. the same time I connected when it actually worked the first time.


I remote into my GeForce PC from my work pc, and double check the Shield proxy for windows program and it sees my work pc but doesn't say shield is communicating with us, I've tried restarting Shield proxy for windows, restarting GeForce PC, disabling Windows firewall, restarting Shield proxy for android, restarting/shutting down Shield, resetting Shield device in GeForce experience on PC, but nothing works, the only way I've managed to get it going is by going home, removing the shield from the GeForce Experience, reconnecting it, then doing a factory reset on my entire router, I thought it had to do with my router, but this is the third one I've tried it on, all do the same thing, it works at first, but doesn't after an hour or so even when nothing has been changed..

I've racked my brain on this and i feel I've come to a dead end with what my knowledge can do for me in this area, if anyone here can lend me their wisdom I'd greatly appreciate it.



My GeForce PC:
Intel Core i7 2600k
Windows 8.1 64-bit
8GB DDR3 1600
EVGA Nvidia GeForce 780 Ti SC
Corsair 120GB SSD
3TB Seagate internal HDD
 
Last edited:

Vroz

New member
Jan 4, 2014
1
0
0
This might be a stupid question,but do you need wifi for this to work?
If it doesn't,then did I do something wrong?
Cause im getting the error "setsockopt failed enodev (no such device)"...

Thanks. :)

Edit:
I found out it needs wifi,but I can't stream on other networks.
I did everything;portforward,install winpcap,install shieldproxy for android and windows.
And well it can launch the game but it closes after like 50 seconds later and a message pops up saying "Cannot connect to "my pc's name" or it pops up saying "Cannot connect to "my pc's name" due to network interferance.

Please I hope someone has a solution.
Thanks!
 
Last edited:

synplex

Senior Member
May 29, 2008
544
66
0
Miami
www.MTFX.tv
Did everything in 1st post and double checked but I'm still just getting a Black screen on my Sheild even though the Proxy worked and is connected. My shield would connect to my PC and start up the game but when the game loaded on my PC I had a Black screen on my Shield until it quit and gave me a Connection error.
I had my PC on my home network 50Mb down 12Mb up and my Shield tethered to my 4g phone 25Mb down 10Mb up.
Any Ideas? http://forum.xda-developers.com/attachment.php?attachmentid=2562237&stc=1&d=1391679139
 

Attachments

Beartax

Member
Aug 26, 2011
14
1
0
Did everything in 1st post and double checked but I'm still just getting a Black screen on my Sheild even though the Proxy worked and is connected. My shield would connect to my PC and start up the game but when the game loaded on my PC I had a Black screen on my Shield until it quit and gave me a Connection error.
I had my PC on my home network 50Mb down 12Mb up and my Shield tethered to my 4g phone 25Mb down 10Mb up.
Any Ideas? http://forum.xda-developers.com/attachment.php?attachmentid=2562237&stc=1&d=1391679139
I know that 3G/4G even if fast is unreliable to use for game streaming.. try it from work wifi or a friend's house
 

HobsonA

Senior Member
Dec 26, 2011
91
4
0
Albany
Maybe someone here can help me here.

I've been using this shieldproxy pretty much since it was released on this forum with great success played remotely a lot. I've gone about a month since using it when i fired it up it doesn't seem to be working anymore.

The proxy connects just fine to my computer and when i click steam on my shield it does launch steam but the screen stays black and in about 10 seconds it will just disconnect. It gives me the option to resume the connection but whenever I click resume it just says Unable to resume. I'm not sure where the breakdown in connection could be occuring from I've tried rebooting things, resyncing my shield, streaming does work remotely so I know that's functional at least.

Has the latest update to the shield of gamestream broken this shieldproxy?? Anyone else playing on shield proxy still with latest everything?

Only things I've done to my computer is setup a plex server since last time i streamed although disabling that didn't seem to fix anything. No other router settings were changed.

Any ideas?
 

HobsonA

Senior Member
Dec 26, 2011
91
4
0
Albany
So it's working again I had to just reinstall winpcap and reboot, not really sure what happened it appeared to be running fine in the background before but all is good again :)
 

rmx36

Senior Member
Aug 1, 2014
92
8
0
I am using the nvidia shield tablet, does this work the same for it? I followed every step above but I get a black screen and have to end gamestream.
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone