Jump to content

Can I store different url connections for one server on Andrioid app?


Recommended Posts

Posted

TL;DR
I have two ways to access my homeserver via two different urls. Is there a way to store these 2 urls as seprate connections on Android app(v3.2.32)? 

Since my ISP doesn't provide public ipv4 address, I have 2 ways to access my server - ipv6 or reverse proxy like frp.
1.ipv6
Use ddns to bind mydomainipv6.com to cloudflare. Set up nginx for reverse proxy and turn on ssl.
So normal request works like: 
client -> https://mydomainipv6.com:port -> CF dns -> https://[home:ipv6address]:port -> nginx -> ssl certificate and proxy directive -> http://127.0.0.1:port -> emby webserver
2.frp
Get one VPS with public ipv4 address running frp server. Run frp client on my homeserver so basically it works like VPN (I know these two differnt). Set up dns on cloudflare and nginx proxy on homeserver.
client -> https://mydomainipv4.com:port -> CF dns -> https://vps.ip:port -> frp server -> frp client -> nginx -> ssl certificate and proxy directive -> http://127.0.0.1:port -> emby webserver
These two ways both work fine. One for ipv6 only and fast. One for ipv4 but laggy.
But anther problem raised when it comes to Android app.
On PC web browser, it's easy to visit my server through different urls. But on app, it seems that emby only stores the last visit url to the server. For example, firstly I visit my server via ipv6 url using LTE and when I change to WIFI with no ipv6 the connection fails as expected. So I add another server with ipv4 url and log in. But on server list, it only shows ipv4 url.
Is there a way to store 2 separate connections with different urls to the same server?

Posted

HI, are you saying you need to switch from one to the other depending on where you're connecting from?

Posted

Shown as picture.

Two urls/connections refer to the same server.

Or the option to switch the url so that no need to add&type manually every time.

image2.png.40a226728bc989f989c674ff89e0f29d.png

Posted

Right i'm just wondering what are the conditions that require you to change from one to the other?

pwhodges
Posted

As I understand it he can only reach his own network by IPv6, so if he's on another network that is only IPv4 he has to go through a site (an external reverse-proxy I guess) which forwards from one to the other.  But there is a performance hit with that so he prefers to use the direct IPv6 connection when he can and switch only when he has to.

Paul

Posted
3 hours ago, Luke said:

Right i'm just wondering what are the conditions that require you to change from one to the other?

One url or connection is for ipv6 only. It performs better in most scenarios. The bad side, of course, only accept ipv6 connection.

Another url or connection is for ipv4. Generally speaking, it goes through tunnel like VPN so it's not my first choice. Only in case my network doesn't have ipv6 (e.g hotel/office network or friend's house not turning on ipv6) which I cannot control or change their settings in most cases.

 

  • 3 weeks later...
Posted

Which of the two addresses is displayed on your server dashboard? That should be the ipv6 one as you say that it's better for most scenarios, right?

Posted
On 3/30/2023 at 12:07 AM, Luke said:

Which of the two addresses is displayed on your server dashboard? That should be the ipv6 one as you say that it's better for most scenarios, right?

Now, one server id can only store one link url (domain or ip) at the same time. 

At most time, I can use ipv6 url to connect to my server. But if say I don't have access to ipv6, I need to manually add new connection - because there's no way to edit existing connection - type in my proxy url (which directs to ipv4). And the new url (ipv4) will override ipv6 url. Whenever I change url(or to say more accurately add new connection) in the future, the last url I use to connect to the same server id will be the final url displayed in the connection.

So I guess there are 2 solutions:

1.One connection store different url can being able to switch the url.

2.Store different connections referring to different urls. 

  • 1 month later...
Posted
Quote

1.One connection store different url can being able to switch the url.

This is what the app already does automatically, so I think this is the answer. I think we'd just have to allow for manual control of it.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...