Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set port? #2385

Closed
xeon826 opened this issue Feb 27, 2025 · 1 comment
Closed

How to set port? #2385

xeon826 opened this issue Feb 27, 2025 · 1 comment

Comments

@xeon826
Copy link

xeon826 commented Feb 27, 2025

I don't see a parameter anywhere to set the port of the request. My api url is http://10.0.2.2:8000 but I get the following error

I/flutter (16824): Error: DioException [connection error]: The connection errored: Connection refused This indicates an error which most likely cannot be solved by the library.
I/flutter (16824): Error: SocketException: Connection refused (OS Error: Connection refused, errno = 111), address = 10.0.2.2, port = 36432

I've it it in the base url, appending :8000 to the end but it seems to just disregard that and use a random port.

Copy link
Contributor

@xeon826 Infra and blank issues are only available for moderators. You're apparently using the wrong issue template.

Infra 和空白 issue 仅供管理人员使用,请选择其他 issue 模板创建 issue。

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 27, 2025
@github-actions github-actions bot locked as off-topic and limited conversation to collaborators Feb 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant