igeoorge 26 Posted July 27, 2019 Share Posted July 27, 2019 Hi, Has anyone managed to have two servers in one machine, (portable and installed), and both with https access? Link to comment Share on other sites More sharing options...
Luke 37365 Posted July 28, 2019 Share Posted July 28, 2019 Using the same url and certificate? Link to comment Share on other sites More sharing options...
Samsmith 0 Posted July 28, 2019 Share Posted July 28, 2019 Hi, Has anyone managed to have two servers in one machine, (portable and installed), and both with https access? Link to comment Share on other sites More sharing options...
PenkethBoy 2063 Posted July 28, 2019 Share Posted July 28, 2019 yes- only difference was the port numbers Link to comment Share on other sites More sharing options...
cptlores 23 Posted July 28, 2019 Share Posted July 28, 2019 Sounds like you want a reverse proxy to handle the SSL certification. https://www.freecodecamp.org/news/docker-nginx-letsencrypt-easy-secure-reverse-proxy-40165ba3aee2/ Link to comment Share on other sites More sharing options...
igeoorge 26 Posted July 28, 2019 Author Share Posted July 28, 2019 Using the same url and certificate? Using different url, certificate and ips. This is my scenario. It's possible? What is the best way to do it? Using Windows 10 and there is no time in my head to enjoy it as network cards for each server. Link to comment Share on other sites More sharing options...
igeoorge 26 Posted July 28, 2019 Author Share Posted July 28, 2019 yes- only difference was the port numbers I did not understand. Could you explain again? Link to comment Share on other sites More sharing options...
darkassassin07 437 Posted July 28, 2019 Share Posted July 28, 2019 Using Windows 10 and there is no time in my head to enjoy it as network cards for each server.Specifically: "network cards for each server" This is really un-clear. Do you mean you have two different network cards in the same system and want each emby server on a separate network card of that system? Link to comment Share on other sites More sharing options...
igeoorge 26 Posted July 28, 2019 Author Share Posted July 28, 2019 Specifically: "network cards for each server" This is really un-clear. Do you mean you have two different network cards in the same system and want each emby server on a separate network card of that system? Exactly two network cards, each network card with valid ips. I would like each server to use a network card. Link to comment Share on other sites More sharing options...
darkassassin07 437 Posted July 28, 2019 Share Posted July 28, 2019 (edited) Ah, ok in that case I believe what you are looking for is 'bind to local network address' under advanced settings. Set each server to the ip address of the network card you want it to be accessible from (and be sure each network card has a static ip). By default both servers are trying to bind to the selected ports on all available ip addresses. From there the rest of the configuration should be pretty straightforward assuming you've successfully setup a single server for https access before. I haven't used this setting myself so someone else please confirm this. Edited July 28, 2019 by darkassassin07 Link to comment Share on other sites More sharing options...
igeoorge 26 Posted July 28, 2019 Author Share Posted July 28, 2019 I did the following: I fixed each ip and gateway on the network cards. After that, I put in each server in the "Link to local network address:" field the respective address of each network card. But unfortunately that didn't work. When I do this, I lose access to one of the two servers. When I put ips and gateways on network cards, I get this message from windows 10: Warning - Multiple default gateways are intended to provide redundancy for a single network (such as an intranet or the Internet). They will not function correctly when the gateways are on two separate networks (for example, if one is on the intranet and the other on the Internet). Do you want to save this setting? Link to comment Share on other sites More sharing options...
igeoorge 26 Posted July 28, 2019 Author Share Posted July 28, 2019 @@Luke, have some light to help me? Link to comment Share on other sites More sharing options...
Luke 37365 Posted July 29, 2019 Share Posted July 29, 2019 I haven't tried this before, sorry. @@pir8radio, do you have any tips? Link to comment Share on other sites More sharing options...
mouseware 9 Posted July 29, 2019 Share Posted July 29, 2019 You can't have two gateways... the default route will be the gateway on one of the NICs, which explains why one server stops working (at least externally). Why do you have two NICs and two different networks? Link to comment Share on other sites More sharing options...
darkassassin07 437 Posted July 29, 2019 Share Posted July 29, 2019 Another simpler solution would be to just put each server on it's own port(s), and revert the setting I mentioned earlier to default. You should then be able to access both servers independently from both network cards by specifying the port in the url you use to connect. You could then explore setting up a reverse proxy infront of your emby server(s) so that you can access them via subdomains instead of port numbers if you find that nessesary. There are definitely a few people around this forum that could help you with that side of things. I have no experience with dual NICs so I can't really help you much further. Hope you get things sorted Link to comment Share on other sites More sharing options...
igeoorge 26 Posted July 29, 2019 Author Share Posted July 29, 2019 You can't have two gateways... the default route will be the gateway on one of the NICs, which explains why one server stops working (at least externally). Why do you have two NICs and two different networks? to the server to both servers using servers and using the HTTPS. Example: Server One: https://emby.servidor.com Server Two (portable): https://emby2.servidor.com It's possible? The ports on each server should be at 443? If it is not possible in the example above, I can at least leave: Example: Server One: https://emby.servidor.com Server Two (portable): https://emby2.servidor.com:8096 Thank you for your help. Link to comment Share on other sites More sharing options...
igeoorge 26 Posted July 29, 2019 Author Share Posted July 29, 2019 Another simpler solution would be to just put each server on it's own port(s), and revert the setting I mentioned earlier to default. You should then be able to access both servers independently from both network cards by specifying the port in the url you use to connect. You could then explore setting up a reverse proxy infront of your emby server(s) so that you can access them via subdomains instead of port numbers if you find that nessesary. There are definitely a few people around this forum that could help you with that side of things. I have no experience with dual NICs so I can't really help you much further. Hope you get things sorted Can I specify the server using the port and this server is HTTPS? Do you refer someone in the forum who can help me? Thanks for your help Link to comment Share on other sites More sharing options...
CBers 6814 Posted July 29, 2019 Share Posted July 29, 2019 When I put ips and gateways on network cards, I get this message from windows 10: Warning - Multiple default gateways are intended to provide redundancy for a single network (such as an intranet or the Internet). They will not function correctly when the gateways are on two separate networks (for example, if one is on the intranet and the other on the Internet). Do you want to save this setting? That's just a warning message. I have 3 NICs in my server with different IP addresses, but with the same gateway address. I only have 1 instance of Emby running though. 1 Link to comment Share on other sites More sharing options...
CBers 6814 Posted July 29, 2019 Share Posted July 29, 2019 Has anyone managed to have two servers in one machine, (portable and installed), and both with https access? Perhaps the question back to you should be, why do you want to do this ? I have had 2 instances of Emby running on the same server at the same time in the past (not currently), just using different ports. What is it you're trying to achieve ? 1 Link to comment Share on other sites More sharing options...
Solution pir8radio 1294 Posted July 29, 2019 Solution Share Posted July 29, 2019 (edited) See Notes in RED to the server to both servers using servers and using the HTTPS. Example: Server One: https://emby.servidor.com Server Two (portable): https://emby2.servidor.com It's possible? The ports on each server should be at 443? NO, you can not have two applications on the same server listening on the same ports, if thats what you want you need nginx reverse proxy. One can be 443, the other can be 444 or something. If it is not possible in the example above, I can at least leave: Example: Server One: https://emby.servidor.com Server Two (portable): https://emby2.servidor.com:8096 Yes This will work. But in the 443 server make sure nothing is set to 8096 Thank you for your help. What are you trying to do with two different NIC's? Are they two different LANs? Same LAN? If same LAN one nic will support both servers, if two totally different lan networks with different IP ranges, then two nics will be needed (sort of). If you are looking for just a bigger bandwidth, or redundancy, do it right with LACP. Edited July 29, 2019 by pir8radio 1 Link to comment Share on other sites More sharing options...
darkassassin07 437 Posted July 29, 2019 Share Posted July 29, 2019 (edited) Example (one): Server One: https://emby.servidor.com Server Two (portable): https://emby2.servidor.com It's possible? The ports on each server should be at 443? If it is not possible in the example above, I can at least leave: Example (two): Server One: https://emby.servidor.com Server Two (portable): https://emby2.servidor.com:8096 Thank you for your help. Both of these setups are possible. For example one, you'd have to setup a reverse proxy that listens on port 443. It would look at the url you used to connect to it (https://emby.... https://emby2....) and based on that, proxy to one of the two emby servers which would be running on their own ports seprate from each other and seprate from 443 (like 8920, and 8921). For example two: You simply have one emby server on say port 443, and the other on 8920. You would then connect with Server One (non-portable): https://emby.servidor.com Server Two (portable): https://emby.servidor.com:8920 The actual hostname used to connect doesn't matter at all, as long at it points to the ip of the server, and valid for the ssl cert. You are specifying which server to connect to by either not adding a port so it defaults to 443 and the non-portable server, or adding :8920 to connect to the portable server. Edited July 29, 2019 by darkassassin07 1 Link to comment Share on other sites More sharing options...
igeoorge 26 Posted July 30, 2019 Author Share Posted July 30, 2019 Thank you in advance for your great help. Thank you very much Link to comment Share on other sites More sharing options...
mouseware 9 Posted July 31, 2019 Share Posted July 31, 2019 If you just HAD to have two servers running on same box, then you could do this several ways. Again, assuming both emby instances were on same computer, and both had unique port numbers set, you could just port forward: If you wanted cleaner end user experience then you can reverse proxy this: You don't need two NICs for this, especially if they are on the same LAN. If different lans or vlans, i would need to try and understand why it's setup this way, and why you'd be hosting both on same box. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now