F5F Stay Refreshed Power Users Networks Set up two separate subdomains pointing to distinct ports on the same IP address.

Set up two separate subdomains pointing to distinct ports on the same IP address.

Set up two separate subdomains pointing to distinct ports on the same IP address.

N
nare05
Junior Member
47
11-26-2016, 09:23 PM
#1
Hello everyone, I purchased a namecheap domain and need a subdomain setup with two ports. The servers are on the same router but on different ports. For example, mc.domain.xyz points to 1.1.1.1:25565 and fn.domainx.xyz to 1.1.1.1:7777. Currently, I can only join them via a single A record that targets both IPs. Anyone have a solution?
N
nare05
11-26-2016, 09:23 PM #1

Hello everyone, I purchased a namecheap domain and need a subdomain setup with two ports. The servers are on the same router but on different ports. For example, mc.domain.xyz points to 1.1.1.1:25565 and fn.domainx.xyz to 1.1.1.1:7777. Currently, I can only join them via a single A record that targets both IPs. Anyone have a solution?

C
clb65
Junior Member
2
11-27-2016, 01:22 AM
#2
Create A records for both domains using the same IP address. Then, in your router, set up a port forwarding rule that directs incoming traffic to a different server according to the port it arrives on.
C
clb65
11-27-2016, 01:22 AM #2

Create A records for both domains using the same IP address. Then, in your router, set up a port forwarding rule that directs incoming traffic to a different server according to the port it arrives on.

E
Elmokiller88
Junior Member
34
12-13-2016, 08:58 AM
#3
You're asking about redirecting network traffic to a different server. Since you've already set up ports 7777 and 25565, you're likely configuring additional rules or services to forward traffic between devices or networks.
E
Elmokiller88
12-13-2016, 08:58 AM #3

You're asking about redirecting network traffic to a different server. Since you've already set up ports 7777 and 25565, you're likely configuring additional rules or services to forward traffic between devices or networks.

K
knightndey
Member
183
12-20-2016, 01:33 PM
#4
SRV files help you manage service details, showing where and which ports each service runs.
K
knightndey
12-20-2016, 01:33 PM #4

SRV files help you manage service details, showing where and which ports each service runs.

F
FadeLucky
Junior Member
5
12-20-2016, 08:32 PM
#5
It never occurred to me this was possible, even though I'm familiar with XMPP. This could really help, since I was considering NextCloud and exploring Apache as a proxy, but it might be simpler.
F
FadeLucky
12-20-2016, 08:32 PM #5

It never occurred to me this was possible, even though I'm familiar with XMPP. This could really help, since I was considering NextCloud and exploring Apache as a proxy, but it might be simpler.

N
Naamky
Junior Member
3
12-31-2016, 02:30 PM
#6
You can also use the identical port and IP with a reverse proxy, similar to Nginx. Several sites point to the same IP address, such as www.a.com and www.b.com, both directing to 1.1.1.1 on the same port. Nginx will route the traffic to the appropriate server according to the URL.
N
Naamky
12-31-2016, 02:30 PM #6

You can also use the identical port and IP with a reverse proxy, similar to Nginx. Several sites point to the same IP address, such as www.a.com and www.b.com, both directing to 1.1.1.1 on the same port. Nginx will route the traffic to the appropriate server according to the URL.

M
193
01-04-2017, 09:42 AM
#7
It seems like you're checking if a setup with 7777 on one server and 25565 on another will function properly.
M
McGamerPro2000
01-04-2017, 09:42 AM #7

It seems like you're checking if a setup with 7777 on one server and 25565 on another will function properly.

L
LolaLouie
Senior Member
742
01-11-2017, 08:51 PM
#8
I mentioned I was looking into setting up my current Apache server as a reverse proxy since it already has LetsEncrypt certificates and uses the same setup. Still unsure which approach would be simpler.
L
LolaLouie
01-11-2017, 08:51 PM #8

I mentioned I was looking into setting up my current Apache server as a reverse proxy since it already has LetsEncrypt certificates and uses the same setup. Still unsure which approach would be simpler.

F
118
01-11-2017, 10:51 PM
#9
Alternative options include reverseproxy (NGINx, Traefik) or kemp load balancer at https://kemptechnologies.com/
F
FantasticMan08
01-11-2017, 10:51 PM #9

Alternative options include reverseproxy (NGINx, Traefik) or kemp load balancer at https://kemptechnologies.com/