cvat-ai / cvat

Annotate better with CVAT, the industry-leading data engine for machine learning. Used and trusted by teams at any scale, for data of any scale.
https://cvat.ai
MIT License
12.57k stars 3k forks source link

Unable to access localhost with localIP and PublicIP in AWS EC2 #6253

Closed tejan74 closed 1 year ago

tejan74 commented 1 year ago

My actions before raising this issue

Unable to access localhost with localIP and PublicIP in AWS EC2

root@ip-172-31-15-48:/home/ubuntu/cvat# curl localhost:8080 <!doctype html>Computer Vision Annotation Tool

root@ip-172-31-15-48:/home/ubuntu/cvat# root@ip-172-31-15-48:/home/ubuntu/cvat# root@ip-172-31-15-48:/home/ubuntu/cvat# curl 172.31.15.48:8080 404 page not found root@ip-172-31-15-48:/home/ubuntu/cvat#

we checked configuration in AWS with other web application it works fine but cvat needs code changes i guess, please provide your inputs to expose localhost to public ip in EC2

Expected Behaviour

it is expected to access with local IP if application run in localhost like other webservers.

Current Behaviour

getting 404 page not found error in EC2.

Possible Solution

CVAT_HOST with localIP is working but without export it must run in localIP by default.

Screenshot 2023-06-06 222942

azhavoro commented 1 year ago

https://opencv.github.io/cvat/docs/faq/#how-to-specify-multiple-hostnames