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

229
Visualizações
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
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