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

223
Views
I'm unable to call flask rest API on external machine, though localhost is working fine, How do I excess on external machine?

I recently installed flask application on nginx Ubuntu Linux server, and when I run "flask run -h 0.0.0.0 -p 1234", it is working in localhost:1234/list if I call API but when I try to call from postman or external It is not at all working "enterned command: "flask run -h 11.222.11.222 -p 1234" and throws an error: "OSError: [Errno 99] Cannot assign requested address".

I have also allowed port number i.e. 1234, still, it is not working. Can anyone help me out with how to assign localhost to IP address or domain name so that flask API can work externally.

I'm new to this server setup and deployment.

Thanks in advance.

over 4 years ago · Santiago Trujillo
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!