title: What value should I give the scope attribute in my manifest.json file when serving a Progressive Web App from a local IP address with a port number?
body: <p>I am having a problem with web app manifest scope on my local Node JS test server. I cannot get the correct scope because the port number on the IP address gets in the way. I am accessing my server with the following address:</p>
  
  <pre><code>https://192.168.0.101:2468/
  </code></pre>
  
  <p>When I use Chrome dev tools to look at my manifest, under the Application tab it shows the url of the manifest file to be: <code>:2468/manifest.json</code> but <code>:2468</code> is not a directory in my root folder.</p>
  
  <p>I keep all my files in the root directory, including the <code>server.js</code>, the <code>manifest.json</code>, and the index, called <code>my-app.html</code></p>
  
  <pre><code>_ website-directory
  |_ server.js
  |_ manifest.json
  |_ my-app.html
  </code></pre>
  
  <p>In my manifest file I have:</p>
  
  <pre><code>{
  
    "scope": "./",
    "start_url": "my-app.html"
  
  }
  </code></pre>
  
  <p>Everything works perfectly when I upload the code to my Github Pages site here: <a href="https://frankpoth.info/content/pop-vlog/javascript/2017/017-offline-web-app/web-app.html" rel="nofollow noreferrer">working example.</a> I think the problem is coming from the <code>:2468</code> behind my IP address. I do not have this problem with a fully qualified domain name like I have with Github Pages.</p>
  
  <p>If I try to put the port number into the manifest's scope like so:</p>
  
  <pre><code>  "scope": "./:2468/",
    "start_url": "my-app.html"
  </code></pre>
  
  <p>It breaks the scope of my manifest and I get this warning: <code>Manifest: property 'scope' ignored. Start url should be within scope of scope URL.</code> Which makes perfect sense because <code>:2468</code> is not a folder in my directory. It's just something Chrome decided to attach to the url of my manifest file.</p>
  
  <p>How do I resolve the scope of my manifest file to ignore the port number? Why does Chrome dev tools indicate that my manifest is in the <code>:2468</code> directory that does not exist?</p>
  
  <p>The reason this is a problem is because my web app will not open in app mode, with a full screen window and splash screen. It only opens in a browser with a url bar and doesn't seem to be using the app manifest at all.</p>
  
  <p>UPDATE: 11/05/17</p>
  
  <p>By using the URL <code>https://192.168.0.101:2468/my-app.html</code> I can access my web app without dev tools showing <code>:2468/</code> in my manifest url. My app does install to both the home screen and the app drawer, but it only opens in a browser rather than a full screen app with a splash screen. I get no warnings about the manifest scope, and my service worker registers and runs perfectly. I am beginning to think that progressive web apps cannot be installed from an IP address, but only fully qualified domain names. Could this be the problem?</p>