Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

196
Views
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 answers
Answer question

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 Report

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!