Android app invalid server address #635

Closed
opened 2025-11-20 05:15:00 -05:00 by saavagebueno · 14 comments
Owner

Originally created by @chrisguen on GitHub (Feb 14, 2024).

Describe the problem

Trying to change the server to my selfhosted server gives "invalid server address" error. Tried on Galaxy S24 and S23 Ultra. Working perfectly fine on multiple Linux clients and site is reachable on the mobile browser. Netbird Cloud connection also works. Also worked on previous Versions.

To Reproduce

Steps to reproduce the behavior:

  1. Download app
  2. go to change server to selfhosted
  3. See error

Expected behavior

Can change the server and connect to Netbird network.

Are you using NetBird Cloud?

No

NetBird version

Mobile: 0.0.20 as stated in the app (in the cloud interface it says 0.25.6)
Management: 0.25.8

Originally created by @chrisguen on GitHub (Feb 14, 2024). **Describe the problem** Trying to change the server to my selfhosted server gives "invalid server address" error. Tried on Galaxy S24 and S23 Ultra. Working perfectly fine on multiple Linux clients and site is reachable on the mobile browser. Netbird Cloud connection also works. Also worked on previous Versions. **To Reproduce** Steps to reproduce the behavior: 1. Download app 2. go to change server to selfhosted 3. See error **Expected behavior** Can change the server and connect to Netbird network. **Are you using NetBird Cloud?** No **NetBird version** Mobile: 0.0.20 as stated in the app (in the cloud interface it says 0.25.6) Management: 0.25.8
saavagebueno added the triage label 2025-11-20 05:15:00 -05:00
Author
Owner

@surik commented on GitHub (Feb 15, 2024):

Hi @chrisguen I just tested this and could not confirm. How do you insert the URL? Does it have https://?

@surik commented on GitHub (Feb 15, 2024): Hi @chrisguen I just tested this and could not confirm. How do you insert the URL? Does it have `https://`?
Author
Owner

@chrisguen commented on GitHub (Feb 15, 2024):

Yes, with and without https, with or without port but it won't work. Just the same way I sign in to the Linux client: https://vpn.domain.tld

@chrisguen commented on GitHub (Feb 15, 2024): Yes, with and without https, with or without port but it won't work. Just the same way I sign in to the Linux client: https://vpn.domain.tld
Author
Owner

@surik commented on GitHub (Feb 15, 2024):

Oh, then I have two suggestions:

  1. Clean up storage and cache. This is somewhere in the Android menu -> Settings/apps/app info/NetBird. Please take a look at the screenshot.
  2. If there is no luck, let's get some debug logs from the server. Extend management service command in docker-compose with "--log-level", "debug" and restart the service. Try to connect and then see if something in the log. You also can share it here if you feel comfortable.
image
@surik commented on GitHub (Feb 15, 2024): Oh, then I have two suggestions: 1. Clean up storage and cache. This is somewhere in the Android menu -> Settings/apps/app info/NetBird. Please take a look at the screenshot. 2. If there is no luck, let's get some debug logs from the server. Extend management service command in docker-compose with `"--log-level", "debug"` and restart the service. Try to connect and then see if something in the log. You also can share it here if you feel comfortable. <img width="640" alt="image" src="https://github.com/netbirdio/netbird/assets/708165/82502c94-46fe-4f25-8212-d3846ccfba6b">
Author
Owner

@chrisguen commented on GitHub (Feb 15, 2024):

I already cleared the storage, still the same. And nothing in the Logs. Is there an easy way to debug the app?

@chrisguen commented on GitHub (Feb 15, 2024): I already cleared the storage, still the same. And nothing in the Logs. Is there an easy way to debug the app?
Author
Owner

@surik commented on GitHub (Feb 15, 2024):

@chrisguen Will you be able to share the logs here or send them to our support email? Regarding additional debugging, I can suggest the following:

Enable the ADB in the developer menu on the Android device. In the app please set the the Trace log level setting. It is a checkbox in the advanced menu.
With the ADB tool, you can get the logs from your device. The ADB is part of the SDK platform tools pack (zip file). You can download it from here. Please extract it and run the next command in the case of Linux: sudo adb logcat -v time | grep GoLog. Please share the results with us.

@surik commented on GitHub (Feb 15, 2024): @chrisguen Will you be able to share the logs here or send them to our support email? Regarding additional debugging, I can suggest the following: Enable the ADB in the developer menu on the Android device. In the app please set the the Trace log level setting. It is a checkbox in the advanced menu. With the ADB tool, you can get the logs from your device. The ADB is part of the SDK platform tools pack (zip file). You can download it from [here](https://developer.android.com/tools/releases/platform-tools). Please extract it and run the next command in the case of Linux: `sudo adb logcat -v time | grep GoLog`. Please share the results with us.
Author
Owner

@chrisguen commented on GitHub (Feb 15, 2024):

This is the error im getting: (16546): [WARN] client/android/login.go:224 retrying Login to the Management service in 5.328879868s due to error invalid provider configuration received from management: PKCE Redirect URLs value is empty. Contact your NetBird administrator
Im using Authentik btw

@chrisguen commented on GitHub (Feb 15, 2024): This is the error im getting: `(16546): [WARN] client/android/login.go:224 retrying Login to the Management service in 5.328879868s due to error invalid provider configuration received from management: PKCE Redirect URLs value is empty. Contact your NetBird administrator ` Im using Authentik btw
Author
Owner

@surik commented on GitHub (Feb 15, 2024):

Any recent changes in the management.json? Check PKCEAuthorizationFlow.RedirectURLs, this should not be empty.

@surik commented on GitHub (Feb 15, 2024): Any recent changes in the management.json? Check `PKCEAuthorizationFlow.RedirectURLs`, this should not be empty.
Author
Owner

@chrisguen commented on GitHub (Feb 15, 2024):

Yea it is empty, I cant remember changing anything about the managment.json. I will try to run the configure.sh again.

@chrisguen commented on GitHub (Feb 15, 2024): Yea it is empty, I cant remember changing anything about the managment.json. I will try to run the configure.sh again.
Author
Owner

@surik commented on GitHub (Feb 15, 2024):

@chrisguen please follow the manual: https://docs.netbird.io/selfhosted/identity-providers#step-1-create-o-auth2-open-id-provider

@surik commented on GitHub (Feb 15, 2024): @chrisguen please follow the manual: https://docs.netbird.io/selfhosted/identity-providers#step-1-create-o-auth2-open-id-provider
Author
Owner

@mlsmaycon commented on GitHub (Feb 15, 2024):

@chrisguen in the meantime, can you share how you authenticated your other peers?

@mlsmaycon commented on GitHub (Feb 15, 2024): @chrisguen in the meantime, can you share how you authenticated your other peers?
Author
Owner

@chrisguen commented on GitHub (Feb 15, 2024):

@chrisguen in the meantime, can you share how you authenticated your other peers?

It just worked like normal, netbird up and logging in via the link.
Im doing a full reinstall right now, that fixed the PKCE redirect url.
BTW I think you should add the Android debugging command to the docs.

@chrisguen commented on GitHub (Feb 15, 2024): > @chrisguen in the meantime, can you share how you authenticated your other peers? It just worked like normal, netbird up and logging in via the link. Im doing a full reinstall right now, that fixed the PKCE redirect url. BTW I think you should add the Android debugging command to the docs.
Author
Owner

@moontide commented on GitHub (Feb 23, 2024):

In my case, I had to change server port to 33073 (full url will be https://my-netbird-host:33073) to get it work.

@moontide commented on GitHub (Feb 23, 2024): In my case, I had to change server port to `33073` (full url will be `https://my-netbird-host:33073`) to get it work.
Author
Owner

@HammyHavoc commented on GitHub (Apr 20, 2024):

In my case, I had to change server port to 33073 (full url will be https://my-netbird-host:33073) to get it work.

Just experienced the same problem. Is this as-expected?

@HammyHavoc commented on GitHub (Apr 20, 2024): > In my case, I had to change server port to `33073` (full url will be `https://my-netbird-host:33073`) to get it work. Just experienced the same problem. Is this as-expected?
Author
Owner

@heroes1412 commented on GitHub (Mar 31, 2025):

In my case, I had to change server port to 33073 (full url will be https://my-netbird-host:33073) to get it work.

at the moment, it not works. still show "Invalid server address"

@heroes1412 commented on GitHub (Mar 31, 2025): > In my case, I had to change server port to `33073` (full url will be `https://my-netbird-host:33073`) to get it work. at the moment, it not works. still show "Invalid server address"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#635