Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

198
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda