1
votes

I have created a Xbox app using UWP and side loaded it to Xbox but I cant access the local host but can access the server though. I checked and found a solution like disable network isolation but that's for app side loaded in PC. How can I do that in Xbox.please help

2
how do yo try to exempt your localhost? can you say more details about it...Parsa Karami
I haven't tried to exempt it. I am trying to access it through local server hosted in local iissadik

2 Answers

0
votes

Try to enable the Private Network Client/Server capability in the Package.appxmanifest file by opening it, switching to the Capabilities tab and ticking the box next to this capability. This enables localhost network communication.

0
votes

Connect to your Xbox through PowerShell via IP with this command:

  1. net start WinRM
  2. Set-Item WSMan:\localhost\Client\TrustedHosts -Value "machine-name or IP Address"
  3. Enter-PSSession -ComputerName "machine-name or IP Address" -Credential "machine-name or IP Address or localhost"\Administrator
  4. checknetisolation loopbackexempt -a -n="Your App Package Family Name"

for getting App Package Family Name go to Package.appxmanifes file > Packaging tab > Package Family Name