Skip to content

socketio.begin on web address instead of ip number? connecting ESP32 to online server via socketio #918

@omarcostahamido

Description

@omarcostahamido

I am trying to connect to a socketio server (version ^4.7.5) living on a cloud server i have, which has a domain on it.
But I've noticed that when I replace socketIO.begin("192.168.1.1", 3000, "/socket.io/?EIO=4"); with socketIO.begin("https://mydomain.com", 80, "/socket.io/?EIO=4"); it wont connect. I even tried it locally by spinning a local nodejs server and using socketIO.begin("http://192.168.1.3", 3000, "/socket.io/?EIO=4"); but it won't connect. I feel like I am missing something very basic here, so I appreciate your help very much! What would you do to connect an ESP32 using socketio to an external server on the web?
🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions