Not Monitored
Tag not monitored by Microsoft.
42,026 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
My API Code :
from flask import Flask, jsonify, request
app = Flask(__name__)
@app.route('/', methods=['GET'])
def test():
return (jsonify({"path":"hello"}))
if __name__ == '__main__':
# app.run(debug=True)
app.run(debug=True, host='0.0.0.0' port=9200)
I am running this api code from a virtual environment created from terminal.
Problem I am facing : I am able to access this api endpoint from the postman, browser but when i am accessing the api from different server from a laravel ui hosted in cpanel. It is thowing an error i.e.
cURL error 7: Failed to connect to xx.xxx.xx.xxx port 9200: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://xx.xxx.xx.xxx:9200
Also, I have allowed few inbound rules, i.e.
Can someone please let me know what i am missing