8

My question is simple.

Is it possible to run TWO different game servers using exact same port but on different IP's using same network interface on the same server ?

Does each IP adress have it's own port pool or is it limited to machine's network interface ?

1
  • 2
    Irrelated, but blocking your site completely to IE users is not particularly fair. If someone want to quickly view the files they shoudln't be forced to download another browser or do some trickery.
    – tombull89
    May 16, 2013 at 15:18

4 Answers 4

12

It is possible. You just have to bind on the right IP address/interface each service using the same port.

Ports (be them UDP or TCP) have their own pool per IP address.

You can listen on the same port if you change: IP address or protocol (UDP or TCP).

See: http://www.bleepingcomputer.com/tutorials/tcp-and-udp-ports-explained/

0
5

Yes. Sockets (IP:Port) come in pairs and have to be unique. You can also bind multiple IPs to a single NIC.

0
3

This is easy only if the application supports binding limitations. If it does not then you can put the app into an LXC container if we are talking about Linux or Java (or something running well under WINE). If Windows does not offer something similar then you can use VMs.

2

Yes, that's an entirely valid way to do it. The IP:port combo has to be unique, but you can certainly have port 80 on 1.2.3.4 and on 1.2.3.5.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.