title: Error creating an Application Server connection in JDeveloper
body: <h1>Background</h1>
  
  <p>I am using the Oracle JDeveloper Studio with SOA installed as my IDE.  In JDeveloper I want to create a connection to a remote Weblogic server.</p>
  
  <blockquote>
    <p>The <em>remote</em> server is running on my local machine, and I refer to it as remote to distinguish it from the <em>Integrated Weblogic Server</em> that comes with JDeveloper.</p>
  </blockquote>
  
  <p>After reading <a href="https://stackoverflow.com/questions/30013673/failed-to-connect-from-jdeveloper-to-weblogic-server-jsr-160-failed">this</a> answer I attempted to add the following lines to the Windows 10 host file:</p>
  
  <pre><code>#
  127.0.0.10 localhost2
  ::1 localhost2
  </code></pre>
  
  <p>These two pictures show the Application Server setup in JDeveloper: <a href="http://%20https://ibb.co/RPmC0r0" rel="nofollow noreferrer">Picture 1</a>, <a href="https://ibb.co/vj5Q3nz" rel="nofollow noreferrer">Picture 2</a></p>
  
  <p>However I still receive the following error:</p>
  
  <pre><code>Server excetion is :
  Connection refused from server
  </code></pre>
  
  <blockquote>
    <p>When create new server on random port such as 7013 and 7014 for ssl, test connection return:</p>
  </blockquote>
  
  <pre><code>Testing HTTP Authentication            ... failed
  Connection refused: connect
  Testing JSR-160 Runtime                ... failed
  Cannot establish connection.
  Testing JSR-160 DomainRuntime          ... skipped
  Testing JSR-88                         ... skipped
  Testing JSR-88-LOCAL                   ... skipped
  Testing Server MBeans Model            ... skipped
  Testing App Controller                 ... skipped
  Testing JSR-88-DEP-MGR                 ... skipped
  Testing JSR-88-DEP-MGR-LOCAL           ... skipped
  Testing JNDI                           ... skipped
  Testing JSR-160 Edit                   ... skipped
  Testing HTTP                           ... failed
  Connection refused: connect
  
  0 of 12 tests successful.
  </code></pre>
  
  <p>Can anyone suggest some troubleshooting steps here?</p>