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

Android VPN ignored #47

Open
rubencalje opened this issue Jul 5, 2024 · 1 comment
Open

Android VPN ignored #47

rubencalje opened this issue Jul 5, 2024 · 1 comment

Comments

@rubencalje
Copy link

rubencalje commented Jul 5, 2024

We built an app that is used by a company on phones within a work-account on Android. This work-account sets up a per-app VPN, through which the app can connect to the FTP-server. However, it seems that ftpconnect ignores this vpn (as many other packages in flutter), and thus cannot connect to the FTP-server. I get the following error:

SocketException: Failed host lookup: xxx (OS Error: No address associated with hostname, errno = 7)

Does anyone else encountered this problem?

Is there any solution, so the phone can connect to the FTP-server through the VPN?

Thank you for any awnser.

@nankarewa
Copy link

I had the same error. In my case, I fixed it by replacing the domain in the host with the IP address:

If it was like this before:

host: example.com

Now I point directly to the server:

host: 109.x.x.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants