title: Perforce server: running on public IP instead of 127.0.0.1
body: <p>During the installation (on Windows Server 2012 ), the setup asks for the port and then the server runs on localhost (127.0.0.1).  When I try to connect to the server using the public IP of the computer, it wouldn't connect.   I tried using P4PORT setting to change localhost to Public IP. But then the Perforce service fails to launch (error 1067).  Not sure why would they bind the port by default to localhost.  Perforce works fine if a client on the same server tries to connect using localhost:1666, but obviously it is useless as clients on other computers cannot connect.  Any pointers?</p>
  
  <p>[more details]
  This server is a Azure VM.  It has an internal IP address and a Public IP address. On the same server, when I lauch P4Admin and enter <code>localhost:1666</code>, it works.  It also works when I enter <code>&lt;computername&gt;:1666</code>.  It also works when I use <code>&lt;Internal IP&gt;:1666</code>.  It DOES NOT work when I enter <code>&lt;Public IP&gt;:1666</code>.  The machine is fully accessible via the Internet using the public IP.</p>