I hava created a VM.Standard.E2.1.Micro instance from oracle cloud, and the instance is running a java applicaiton.
I want to access api from oralce cloud instance.
I have configured the Virtual cloud network's security list ingress to allow access to all IP addresses.
ping [public ip] is working. ssh to instance is working.
But I try to curl -X GET "http:[public ip]:[port]/example/api/..." always get connection refused.
Does anyone have any ideas?
If you're trying to access the API from another machine, ensure there are no local firewalls blocking outgoing requests. Local firewalls can sometimes interfere with the connectivity to your Oracle Cloud instance. Verify and adjust your local firewall settings to allow the necessary outbound traffic.