title: Web server on port 80 on iPhone
body: <p>I've been working on a project for awhile and it's got a built-in HTTP server which runs on port 8080. The users are told to access the device via e.g. <a href="http://192.168.1.4:8080/" rel="nofollow noreferrer">http://192.168.1.4:8080/</a> -- works great. Recently <strong>I realized that applications CAN use port 80</strong> to remove the need for ":8080", though if I try to set the port to 80 I get a crash with "General CFSocket error".</p>
  
  <p>Any ideas how to enable port 80 for a web server on an app?</p>
  
  <p>A few screenshots where this is happening:</p>
  
  <p>First -- on the iPad, the app is showing the URLs where you can access it.</p>
  
  <p><a href="https://i.stack.imgur.com/wZdlq.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wZdlq.jpg" alt="iPad"></a><br>
  <sub>(source: <a href="http://enrogue.com/port80/ipad.jpg" rel="nofollow noreferrer">enrogue.com</a>)</sub>  </p>
  
  <p>Second -- Firefox, by IP:</p>
  
  <p><a href="https://i.stack.imgur.com/6SZcS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6SZcS.png" alt="FF by IP"></a><br>
  <sub>(source: <a href="http://enrogue.com/port80/firefox_byip.png" rel="nofollow noreferrer">enrogue.com</a>)</sub>  </p>
  
  <p>The above are from a real app on the store, it's not jailbroken magic or anything. I know that ports &lt; 1024 are reserved for the admin on UNIX systems, so the above app is obviously doing something specific to get access to the port.</p>