Skip to content

flutter-pi localhost doubt #241

@alexmac98

Description

@alexmac98

Hello, I'm developing a flutter application that communicates with a RabbitMQ broker that runs on port 5672 on the machine (RaspberryPi).

I know that the Android emulators use the IP 10.0.2.2 to point to the machine's localhost. So, essentially, if the machine has a service running on localhost:5672, the flutter application would connect to 10.0.2.2:5672 in order to interact with that service.

Does this also happen in flutter-pi? Is the 10.0.2.2 used to point to the localhost of the machine? If not, what's the IP?

For some reason, the following error appears:
[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: ConnectionFailedException: Could not connect to 10.0.2.2:5672 after 1 attempts. Giving up

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