title: How can I remove "net::ERR_NAME_NOT_RESOLVED"?
body: <pre><code>import Axios from 'axios';
  import './App.css';  
  
  function App() {
  
    const [userNameReg, setUserNameReg] = useState('')
    const [passwordReg, setPasswordReg] = useState('')
  
    const register = () =&gt;{
      Axios.post(&quot;http://localhost3001/register&quot;, {
        username : userNameReg,
        password : passwordReg,
      }).then((res) =&gt;{
        console.log(res);
      });
    };
  </code></pre>
  <ol>
  <li><strong>POST http://localhost3001/register net::ERR_NAME_NOT_RESOLVED</strong></li>
  <li><strong>Uncaught (in promise) Error: Network Error</strong></li>
  </ol>
  <ul>
  <li>at createError (createError.js:16)</li>
  <li>at XMLHttpRequest.handleError (xhr.js:84)</li>
  </ul>