As it turns out, the issue was an SELINUX policy.
by running the following, it will fix the issue
#setsebool -P httpd_can_network_connect=1