0

I have a legacy application that communicates with a remote server over TCP. The legacy application act as a server and a client at the same time. The port numbers on both sides are established and cannot be changed (they have been hardcoded on both – the server and the application).

I am trying to scale up the application to run more instances, and I am looking for the best alternatives. Spinning multiple VMs is defiantly an option, but I am trying to achieve the same using containers. I can run the legacy application in Windows or Linux containers. The problem is that when I run multiple containers, I need them to have accessible IP & ports to act as TCP listeners so that the server can establish a connection back. Is there a possibility to scale the containers in such a way that they will not go through NAT and each one of them will have accessible IP?

  • 1
    You can use `docker run -p IP:HOSTPORT:CONTAINERPORT` to map a container to one of the host's interfaces, but setting that up is still a system-administration problem. – David Maze Jul 14 '22 at 13:37
  • You tagged the question with Kubernetes, but I can't tell from your question itself if you really are trying to use Kubernetes. If so, you will need to look into Deployments and Services. – Brian Pursley Jul 15 '22 at 00:27

0 Answers0