Route with two addresses to a device, but with different ports?

En
- in Servers
6

If I have two servers running on one device (in this case Minecraft Server) and I want to control them, then I would do this via port sharing (we have a Fritz! Box). Due to the not always constant IPv4 address, I rented a DynDns IP from https://www.noip.com. Only I can in the Fritz! Box then unfortunately only specify one IP and not set the port more precisely.

So if I were to get two IP addresses from https://www.strato.de, could I simply connect them to this one device and also determine a port?

My father said I needed a proxy to do a forwarding.

Can someone help me?

El

You need a different port for each server… So the first to 25565 and the second e.g. 25566 etc… You can then assign an IP in the Fritzbox to each destination port, where the server is running. If both are running on the same PC, the IP is always the same, only the port is always different…

Sa

What huh, of course you can use multiple ports that you do all the time.

Port forwarding works just as easily creating multiple entries.

To your multiple IP addresses:

This is total madness for two services

You have to have a Linux server to which the IP addresses are assigned

Your server then connects to your home computer via VPN and you can route the fixed IP addresses.

No nonsense, your computer would have to connect to the server via VPN because you don't have a fixed address yourself, the ping will definitely be great…

Indeed then you could dispose of the dyn DNS

Oh yes, completely forgot, if you have a Linux server and manage the VPN smoothly then you could also host the Minecraft server there

En

I know that I have to use different ports, but my only concern is that you are directed to different ports depending on which address you are using.

El

I don't think you can be forwarded to fixed ports with the DYN-Dns services. Where is the problem to register IP: Port as a server? Then the IP is always the same and the port is entered after it… It couldn't be easier…

po

Only I can in the Fritz! Box then unfortunately only specify one IP and not set the port more precisely.

You enter the port when calling the server:

yourname.noip.com:12345

yourname.noip.com:23456

Your Fritzbox redirects the calls to the public IP address to your server. The assignment to the correct server then takes place via the called ports. It's like with the web server: http://example.com:80 and https://example.com:443 The only difference is that the browser automatically inserts the port and you have to do this manually for you.

If I were to get two IP addresses from Strato, could I simply connect them to this one device and also determine a port?

A Strato IP address can be reached in the Strato data center. You can't just "connect" an IP address to a device.

En

I would like to have:

1 .: example.de → 0.0.0.0:12345
2 .: example.com → 0.0.0.0:98765

hope you can understand it better