I have Linux base Cpanel hosting server, And my main web is running in PHP. Also in that server, I serve the NodeJS
app on port 3000
and host 0.0.0.0
using PM2
. NodeJs app running fine. but now I want to connect that socket from my PHP app. my PHP app is running on the main domain, ex: mydomain.com. i tried to connect socket using MY_SERVER_IP:3000
and mydomain.com:3000
but i not able to connect that socket.
How can i connect NodeJS socket from my PHP app?