Laravel Echo Server net::ERR_CONNECTION_TIMED_OUT Only when my ip doesnot include in firefall – Centos

Published

I am getting net::ERR_CONNECTION_TIMED_OUT but error got disappears when I add my ip into my hosting WHM firewall and everything works fine.

But I am building a live global chat application. I am receiving live messages without any problem but the other person does not receive messages (until he refreshes his browser) because his IP is not added into my hosting WHM panel. As you know I cant add ip of every person into WHM firewall.

What could cause this it? Why do I need to add IP to make laravel-echo-server works fine both ways?

Laravel echo server and redis both are working fine. Here is my laravel-echo-server config:

{
        "authHost": "https://jeeveslive.com",
        "authEndpoint": "/broadcasting/auth",
        "clients": [],
        "database": "redis",
        "databaseConfig": {
            "redis": {
                "host": "127.0.0.1",
                "port": "6379"
            },
            "sqlite": {
                "databasePath": "/database/laravel-echo-server.sqlite"
            }
        },
        "devMode": true,
        "host": null,
        "port": "6001",
        "protocol": "https",
        "socketio": {},
        "sslCertPath": "/home/jeeves23/ssl/certs/jeeveslive_com_e2a27_1124f_1640131199_45ee9786ed2280c53fa0795340788fb0.crt",
        "sslKeyPath": "/home/jeeves23/ssl/keys/e2a27_1124f_98e115065f29749ff05ad1f6edd730b3.key",
        "sslCertChainPath": "",
        "sslPassphrase": "",
        "subscribers": {
            "http": true,
            "redis": true
        },
        "apiOriginAllow": {
                    "allowCors": true,
                    "allowOrigin": "*",
                    "allowMethods": "GET, POST",
                    "allowHeaders": "Origin, Content-Type, X-Auth-Token, X-Requested-With, Accept, Authorization, X-CSRF-TOKEN, X-Socket-Id"
            }
}
{
    "authHost": "https://jeeveslive.com",
    "authEndpoint": "/broadcasting/auth",
    "clients": [],
    "database": "redis",
    "databaseConfig": {
        "redis": {
            "host": "127.0.0.1",
            "port": "6379"
        },
        "sqlite": {
            "databasePath": "/database/laravel-echo-server.sqlite"
        }
    },
    "devMode": true,
    "host": null,
    "port": "6001",
    "protocol": "https",
    "socketio": {},
    "sslCertPath": "/home/jeeves23/ssl/certs/jeeveslive_com_e2a27_1124f_1640131199_45ee9786ed2280c53fa0795340788fb0.crt",
    "sslKeyPath": "/home/jeeves23/ssl/keys/e2a27_1124f_98e115065f29749ff05ad1f6edd730b3.key",
    "sslCertChainPath": "",
    "sslPassphrase": "",
    "subscribers": {
        "http": true,
        "redis": true
    },
    "apiOriginAllow": {
                "allowCors": true,
                "allowOrigin": "*",
                "allowMethods": "GET, POST",
                "allowHeaders": "Origin, Content-Type, X-Auth-Token, X-Requested-With, Accept, Authorization, X-CSRF-TOKEN, X-Socket-Id"
        }
}

Source: Laravel

Published
Categorised as laravel, socket.io Tagged ,

Answers

Leave a Reply

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq