mirror of
https://github.com/bitwarden/android.git
synced 2026-03-13 13:44:36 -05:00
Android App Ignores Ports in Hostnames #1370
Closed
opened 2025-11-26 22:46:33 -06:00 by GiteaMirror
·
18 comments
No Branch/Tag Specified
main
PM-32663/update-vault-migration-screens
pm-33356/policy-changed-push-sync
sdlc/sdk-update
premium-upgrade/PM-33511-creation-date
renovate/lock-file-maintenance
llm/add-resolving-sdk-updates-skill
QA-1523/sanity-test-saucelabs
release/2026.3-rc48
PM-24380/flight-recorder-redact-hostname
PM-26577-app-links-support
PM-26896-autofill-fix
release/2026.2-rc47
PM-32714/fallback-to-web-vault-host
pr-6572
PM-28834/setting-app-layout-horizonos
vvolkgang/process-release-notes-v2
release/2026.2-rc46
release/2026.1-rc45
PM-30644/added-logs-for-debug
PM-30644/quicktile-nav-not-showing-migration
minor-gradle-updates
release/2026.1-rc42
release/2026.1-rc44
release/2026.1-rc43
PM-28834/set-landscape-on-horizonos-devices
context-rules
devclarity/update-code-review-command
PM-20026/force-ltr-passwords-and-codes
release/2025.12-rc41
cmcg/testCoverage
claude-skill/creating-feature-flags
PM-29014/talkback-support-for-passwords
release/2025.12-rc40
BRE-1305/publish_test
accept-user-certs
autofill-permissions
release/2025.11-rc39
PM-22479/check-all-certificates-validate-asset-links
release/2025.10-rc38
agalles/android-latest
optimize-test-workflows
tier2-test-sharding
retro-agent
PM-27001/skip-account-selection-only-one-exists-cxp
release/2025.10-rc37
agalles/test-1118
release/2025.10-rc36
PM-20593-token-refresh
QA-1126b/adding-native-sanity-test
release/2025.9-rc35
pm-25933/sdk-update-password
release/2025.9-rc34
release/2025.8-rc33
agalles/20250821-release
debug-release-issues
pm-24249-allow-automated-prs-for-sdk-updates
release/2025.8-rc32
release/WORKFLOW-TEST-2025.8-rc28
agalles/20250807release
release/2025.07-rc25
release/hotfix-v2025.7.0-bwa
pm-23311/export-vault-policy-bypass
release/2025.07-rc24
authenticator-pm-sync-flags-issue
ps/implement-sdk-repository-example
release/hotfix-v2025.6.0-bwpm
release/2025.06-rc21
agalles/automate-android-fastlane-patch
release/2025.05-rc20
release/2025.04-rc19
languages/basque
release/2025.03-rc19
update-readme
qrcode/feature
innovation/archive/pm-19153-archive-items
qrcode/2-ui-fields
qrcode/1-page
hold-on-biometric-prompt-alternative
release-notes-process
release/2025.02-rc16
bwa-monorepo
PM-8223/new-device-verification-ux-improvements
pm-18451/exempt-from-policies
test-bwa
cs-workaround-linked-0-copy
release/2025.01-rc15
release/2025.01-rc14
release/2024.12-rc13
pm-16670/sync-leave-notice
821
PM-16695/backport-lean-more-new-device-verification
km/15084-testing
release/hotfix-v2024.11.7
release/2024.11-rc1
pm-11304/collection-add-item-button
PM-14241/disabling-logs-app-crash
poc/offline-editing
new-version-calc
pm-11649/expired-link-services
pm-6702/add-feature-flag
pm-6702/email-verification-feature
pm-9933/marketing-copy-update
pm-6702/registration-flows
update-templates
pm-6701/email-verification-selfhost-registration
v2026.2.1-bwpm
v2026.2.1-bwa
v2026.2.0-bwpm
v2026.2.0-bwa
v2026.1.1-bwa
v2026.1.1-bwpm
temp-test
v2026.1.0-bwpm
v2026.1.0-bwa
v2025.12.1-bwa
v2025.12.1-bwpm
v2025.12.0-bwa
v2025.12.0-bwpm
v2025.11.1-bwpm
v2025.11.1-bwa
v2025.11.0-bwpm
v2025.11.0-bwa
v2025.10.1-bwa
v2025.10.1-bwpm
v2025.10.0-bwa
v2025.10.0-bwpm
v2025.9.1-bwa
v2025.9.1-bwpm
v2025.9.0-bwa
v2025.9.0-bwpm
v2025.8.1-bwa
v2025.8.1-bwpm
v2025.8.0-bwa
v2025.8.0-bwpm
v2025.7.2-bwa
v2025.7.2-bwpm
v2025.7.1-bwa
v2025.7.1-bwpm
v2025.7.0-bwa
v2025.7.0-bwpm
v2025.6.1-bwpm
v2025.6.0-bwa
v2025.6.0-bwpm
v2025.1.0-bwa
v2025.5.0-bwa
v2025.5.0-bwpm
v2025.5.999
2025.4.0
v2025.4.0
untagged-4731eaadac73f3dfbbb8
v2025.3.0
v2025.2.0
untagged-815a165c5d70ffe75bc7
v2025.1.2
v2025.1.1
v2025.1.0
v2024.12.0
untagged-5a76b6392a4c8998c63a
v2024.11.7
v2024.11.6
v2024.11.5
v2024.11.4
v2024.11.3
v2024.11.2
v2024.11.1
v2024.11.0
v2024.10.2
v2024.10.1
v2024.10.0
v2024.9.0
v2024.8.1
v2024.8.0
v2024.7.3
v2024.7.2
v2024.7.1
v2024.7.0
v2024.6.1
v2024.6.0
v2024.5.1
v2024.4.1
v2024.4.2
v2024.4.0
v2024.3.3
v2024.3.1
v2024.3.0
v2024.2.1
v2024.2.0
v2024.1.1
v2024.1.0
v2023.12.0
v2023.10.0
v2023.9.2
maui-single-project-android
v2023.9.1
v2023.9.0
v2023.8.0
v2023.7.0
v2023.5.0
v2023.4.0
v2023.3.2
v2023.3.1
v2023.3.0
v2023.2.0
v2023.1.0
v2022.11.0
v2022.10.0
v2022.9.1
v2022.9.0
v2022.8.0
v2022.6.2
v2022.6.1
v2022.6.0
v2022.05.0
v2.18.0
v2.17.0
v2.16.4
v2.16.3
v2.16.2
v2.16.1
v2.15.0
v2.14.2
v2.14.1
v2.14.0
v2.13.0
v2.12.0
v2.11.3
v2.11.2
v2.11.1
v2.11.0
v2.10.0
v2.9.1
v2.9.0
v2.8.2
v2.8.1
v2.8.0
v2.7.2
v2.7.0
v2.6.1
v2.6.0
v2.5.6
v.2.5.5
v2.5.5
v2.5.4
v2.5.3
v2.5.2
v2.5.1
v2.5.0
v2.4.3
v2.4.2
v2.4.1
v2.4.0
v2.3.1
v2.3.0
v2.2.8
v2.2.7
v2.2.6
v2.2.2
v2.2.1
v2.2.0
v2.1.2
v2.1.0
v2.0.6
v2.0.5
v2.0.4
v2.0.3
v2.0.2
v2.0.1
v2.0.0
v1.22.1
v1.22.0
v1.21.0
v1.20.0
v1.19.0
v1.18.1
v1.18.0
v1.17.0
v1.16.0
v1.15.2
v1.15.1
v1.15.0
v1.14.4
v1.14.1
v1.14.0
v1.13.0
v1.12.2
v1.12.1
v1.12.0
v1.11.1
v1.11.0
v1.10.0
v1.9.0
v1.8.1
v1.8.0
v1.7.0
v1.6.5
v1.6.1
v1.6.0
v1.5.1
v1.5.0
v1.4.4
v1.4.3
v1.4.0
v1.3.0
v1.2.1
v1.2.0
v1.1.0
v1.0.0
v0.0.6
v0.0.5
v0.0.4
v0.0.3
v0.0.2
v0.0.1
Milestone
No items
No Milestone
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/android#1370
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gregg098 on GitHub (Oct 29, 2021).
Steps To Reproduce
For example, for my Synology NAS (Diskstation), a local domain in Bitwarden that works fine on Windows is:
http://diskstation.services.lan:5000 (Host Matching)
This will now find the site in BW every time, but now all my other home services on the *.services.lan domain will also have a "Diskstation" entry, which I was trying to avoid.
Expected Result
Expect auto search to be able to find the correct site just as it would in Windows
Actual Result
Many home services are the exact same domain, just different ports. Instead of having to scroll through a giant list of them, I set each entry to "Host" so that it matches everything exactly. No issues with this approach in Windows, but Android never finds the BW entry and wants a basic domain stripped of ports.
Screenshots or Videos
No response
Additional Context
No response
Operating System
Android
Operating System Version
11
Device
Samsung Galaxy S21+
Build Version
2.14.0 (3977)
Beta
@Sim0nW0lf commented on GitHub (Nov 11, 2021):
I am having the same and another related issue!
The browser Extentions work well, only the app has this problem...
I set my whole app to "Host", just like my browser extentions and saw other problems as well.
If I take your site as example:
http://diskstation.services.lan will work just fine
http://www.services.lan does not work
That means if the app is in "Host" mode, then no website without custom subdomain or with port will work.
(Not sure if that is entirely true, didn't test enough but that's my theory)
Hopefully that will be fixed! Thanks for your awesome development! :)
@Sim0nW0lf commented on GitHub (Nov 19, 2021):
Everything is working for me now!
Running the Bitwarden App Beta V2.14.2
Maybe the stable app only has this issue? I don't know.
Is it working for you as well?
@gregg098 commented on GitHub (Nov 21, 2021):
Signed up for beta, but didnt get an app update. Still have the same issue on stable.
@Sim0nW0lf commented on GitHub (Nov 21, 2021):
Which app version are you running at the moment?
It will probably take a while for the update! If you get it, I hope it will work :)
@gregg098 commented on GitHub (Nov 21, 2021):
Version: 2.14.2 (4005)
@lcasale commented on GitHub (Mar 27, 2022):
I have this issue on 2.16.2
@Sim0nW0lf commented on GitHub (Mar 27, 2022):
For me it is also broken again.
URI Match Detection "base domain" works
but
URI Match Detection "host" which I am using is not working
@redxtech commented on GitHub (Jul 11, 2022):
I am still getting this issue on version 2022.6.1 (4795).
I'm wondering if this is at all on the radar of the team?
@KevoM commented on GitHub (Jan 31, 2023):
Same on android 12 and Bitwarden version 2023.1.0
@Kartoffl commented on GitHub (Apr 25, 2023):
same on android 12, bitwarden version 2023.3.2 (6098)
@2PieceCombo commented on GitHub (Jul 30, 2023):
I have an issue that seems to be along these same lines.
I have a service running on https://10.13.1.100
My entry was set to: https://10.13.1.100/login
Browser works fine, but on mobile is says "no item found for 10.13.1.100" (using android btw)
Ive tried changing the URI match to base domain, host, and starts with, none of them worked on mobile.
If i change the entry to https://10.13.1.100/ it still does not work, but if I remove the / at the end, it suddenly does recognize it. However I run dozens of internal services on the same IP but different ports. The android version completely ignores entries if there is anything following the IP address, regardless if it actually matches.
This means that I can't use any of my saved logins on my internal services, unless I manually search for them. This is incredibly frustrating because mobile is already the least convenient to use, and this issues makes it nearly unusable.
@jufy111 commented on GitHub (Sep 13, 2023):
I'm also having the same issue. Autofill works without issue on desktop but on mobile it won't auto fill HOST:IP correctly, regardless of the match settings.
@Meinnick commented on GitHub (Sep 14, 2023):
same on android 13, bitwarden version 2023.8.0 (7466)
@weilah commented on GitHub (Nov 24, 2023):
I'm facing the same problem on Android (bitwarden version 2023.10.0 (8257)). I tried chrome and brave with same results. The port gets somehow lost in the way when trying to match URIs. I tried "starts with..." and "host", but bitwarden only sees the local IP and not the port.
If I press add login then the URI is shown without the port
@sv87411 commented on GitHub (Nov 26, 2023):
Same issue here on 2023.10.0 (8257) (Android 13).
With multiple home hosted apps often with the same home domain/host hosting apps on multiple ports with multiple logins Bitwarden needs to recognise the port as a part of the URI.
In the Bitwarden docs it says port is considered to be part of the host for matching purposes so why doesn't it behave like this on Android?
Update: Oh. Just realised this was raised in 2021. No chance of this getting resolved then. Looking at alternative Bitwarden options now as this is a deal breaker for me.
@TheColtron commented on GitHub (Apr 10, 2024):
Exact same in v2024.3.0. I've had this problem for ages, and only finally tried to pin down the problem today.
No issues with the browser extension, and this happens on all auto fill modes (inline and whatever the normal one is called).
Here's how it works. URIs like
http://{IP}:{Port}:Why is it a problem?:
http://{IP}:{Port}page (via the + button or "Auto fill & save") doesn't capture the port in the URI. Users will then edit the URI and add the port to fix this, but some users will also change the match type at the same time (since hostname matching, according to its name, should not be used in this case).So hopefully that helps point in the right direction of a fix. For anyone having this issue, you can workaround it by using base domain matching on the full socket address. I've only been on mobile since writing, so I don't know if this will mess up matching on the extension version though.
@MossyGreen commented on GitHub (Jun 4, 2024):
Same issue here on v2024.4.0
It's disappointing to see that the issue has persisted since 2021
@vvolkgang commented on GitHub (Jun 20, 2024):
Issue migrated to https://github.com/bitwarden/mobile/issues/1620