Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

197
Visualizações
Making Request from Localhost:3000 says NETWORK FAIL to React Native Project

I had watched a series of tutorials online and had followed lot of steps. I had to change my IP address to my machine IP, but yet network error. even, I had to change it to 127.0.0.1. Am just so tired, I need help badly. I am using a project on the PHPMyAdmin database, which I use to fetch the result using express and node MySQL. I did all I could I even used USB tethering, hotspot, and all but none seems to work

const GetUserData =()=>{
   axios.get("http://127.0.0.1:3000/users").then(
       (response)=>{
        console.log(response.data);
   }).catch(err =>{
       console.log(err);
   })
}; 

useEffect(() => {
  GetUserData()
},[])
about 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

Can you add the error message, please? If you face CORS you can fix it by:

var cors = require('cors')
var app = express()
app.use(cors())
about 4 years ago · Santiago Trujillo Relatório

0

Your machine has multiple IP addresses, even with one network device.

Of them:

  • 127.0.0.1 - local IP address. It is not on any network device, and it should not be there.
  • 192.168.x.y - network IP address. It is configured on the network device (manually or automatically).

You don't need to install 127.0.0.1 on a network device. 127.0.0.1 is already your machine, even without any network devices.

Also, to be able to make requests to 127.0.0.1:3000, some service must already listen on this port.

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda