title: How to allow/restrict access to tomcat server for certain computer names?
body: <p>I opened a server on my computer . All my friends who are on the same network are able to access it from their computers . But I want to let only one of my friends access  . So i tried to write the following in my  <code>context.xml</code></p>
  
  <pre><code>&lt;Context&gt;
      &lt;Valve className="org.apache.catalina.valves.RemoteAddrValve"
          allow="myFriendsComputerName"
      /&gt;
  &lt;/Context&gt;
  </code></pre>
  
  <p>He got error 403 denied access . </p>
  
  <hr>
  
  <p>Then I tried </p>
  
  <pre><code>&lt;Context&gt;
      &lt;Valve className="org.apache.catalina.valves.RemoteAddrValve"
          allow="127\.0\.0\.1"
      /&gt;
  &lt;/Context&gt;
  </code></pre>
  
  <p>This restricted my own computer from accessing .</p>
  
  <p>What is the issue with my <code>context.xml</code> </p>