Jump to content

port in app should change if user specifies HTTPS


Recommended Posts

displayname0504
Posted

When a user is connecting their app to a server, if they specify HTTPS, the port should change to 8920. 

Ideally, the user should put in the url, checkbox for http/https, and then port could be changed if not one of the default http/https ports.

Neminem
Posted

No because I use a different port.

  • Agree 1
displayname0504
Posted

Right. You can still modify the port, but it default loads the http port. So if you select the https port, it can update to the https port number, still leaving the option to update it

Neminem
Posted

Well if it should default to something else !!

It should default to its proper SSL / https port : 443

  • Agree 1
Posted
1 hour ago, Neminem said:

Well if it should default to something else !!

It should default to its proper SSL / https port : 443

It makes the most sense to match the server default.

displayname0504
Posted

I agree, but the default ports for emby are 8096 (HTTP) and 8920 (HTTPS), so if we specify https in the app, the port should switch to 8920. (user can still change)

 

brothom
Posted (edited)

Personally I would prefer something like this:

image.png.f577140a711c5a2f3cca7a7e9824c8d1.png

image.png.d236eeed81e037ff6fc58573a004e0d5.png

http(s) are/should always the same port (with the exception of 443) the only real deviation could be on ip-adress level, so why bother users even showing the field when https://example.com:3306 shouldn't be supported anyway?

Another way would be to have an "advanced" section with a checkbox:

 image.png.010f7022727f42b55a88bd5fb136d539.png

I'm willing to bet more than 80% of the server are set up "conventionally", using basics 8080, 80, 443, etc so users shouldn't be bothered by technical terms like port numbers by default. Every user I've had to set up so far got confused to what a port even is.

Edited by brothom
displayname0504
Posted

This is exactly what I would love

Posted
1 hour ago, brothom said:

Personally I would prefer something like this:

Hi.  These selections don't make sense to me:

image.png

Whether you enter an IP address or a domain name, the protocol is still there... Now, one can argue it doesn't make much sense to use https with an IP address, but nothing really precludes it.

1 hour ago, brothom said:

https://example.com:3306 shouldn't be supported anyway?

Why not?

1 hour ago, brothom said:

I'm willing to bet more than 80% of the server are set up "conventionally", using basics 8080, 80, 443,

I believe that would be a bad bet since our defaults are 8096 and 8920.  My bet would me most are setup that way.

displayname0504
Posted

I should have clarified my response as well, I was rushing and didn't have full coffee yet.

http/https as the dropbox. That makes sense.

Then, if they select http, the port should fill in to 8096, if they select https, 8920.  It's still a writable field, so the user can change it. But the defaults fill in. No need for an advanced checkbox, etc.

  • Like 1
brothom
Posted
38 minutes ago, ebr said:

I believe that would be a bad bet since our defaults are 8096 and 8920.  My bet would me most are setup that way.

I'm actually really curious about this. The default port is 8096 you're right, but for external access using a domain name is much more convenient.

The application might be running on a local port of 8096, but traffic may also be forwarded to that port (at least that's how I setup my Emby).

Neminem
Posted (edited)

Here is my setup.

Emby server 8096

NPM server input 8096 output 443 with ssl certificate.

Router port forward input 443 output 433 to NPM from internet

In this setup I have no need for 8920.

I would preferer it to default to 443 when user types https://myserver.mydomain.io

Edited by Neminem
  • Agree 1
Posted
5 hours ago, brothom said:

The default port is 8096 you're right, but for external access using a domain name is much more convenient.

Yes but many of our users are not necessarily that sophisticated.  I'm sure most of the responses out here will be what you are expecting because it is mostly from the power-users who have things like their own domain names, reverse-proxies, etc.  But the majority of people use products in the simplest way possible - with all default settings. 

displayname0504
Posted
On 7/24/2025 at 3:49 PM, ebr said:

Yes but many of our users are not necessarily that sophisticated.  I'm sure most of the responses out here will be what you are expecting because it is mostly from the power-users who have things like their own domain names, reverse-proxies, etc.  But the majority of people use products in the simplest way possible - with all default settings. 

100% this. I am the admin, but have to walk people through connecting. The fewer clicks and modifications, the better

  • Thanks 1
  • 2 months later...
Posted

What about a server side port sync?
Looking to get ride of the custom port and use 443 so I don't have to port translate.
The problem is having to change the devices, some family are not technical.
Could the app sync the port so that existing setups already connected could have their port changed at the server and all the connected apps change to match.

Posted
23 hours ago, ados8000 said:

What about a server side port sync?
Looking to get ride of the custom port and use 443 so I don't have to port translate.
The problem is having to change the devices, some family are not technical.
Could the app sync the port so that existing setups already connected could have their port changed at the server and all the connected apps change to match.

Hi, as soon as you change the port on the server, the apps will become disconnected. Therefore, they need to know how to connect to your server after that, meaning, they need to know the new server url.

If you use our Emby Connect feature, it can help with this: Emby Connect

But you will have to take the time to get to know the differences between Emby Connect and locally managed credentials on your server.

My suggestion: Keep doing what you're doing and just deal with the one-time disruption of updating the server connection info. You're probably not going to be changing the port number very often.

  • Agree 1
Posted (edited)

I found a workaround but for a cleaner setup it means device reconfiguration.
Unusual port choice for HTTPS as it goes against the industry default 🤷‍♂️.
Migrating over wont be that much of a hassle, should have done it from the beginning over avoiding a port change in setup 😅.

Edited by ados8000
  • Thanks 1

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...