Giter Club home page Giter Club logo

Comments (5)

macedot avatar macedot commented on September 26, 2024

Wrong. Doing as described above port must be open already. :\

from acweb.

Kugelschieber avatar Kugelschieber commented on September 26, 2024

So we have to add a range of ports to the Dockerfile?

from acweb.

macedot avatar macedot commented on September 26, 2024

We can't use the method i've described because it assumes those ports shaw be open already.
I've seen some iptables magic to do that on-the-fly, but it may be tricky.
So far, docker doesn't allow dynamic port forwarding. 👎

from acweb.

macedot avatar macedot commented on September 26, 2024

Actually, if we do something like the first post, with a range as small as possible, it may work. Seems that docker has some awkward memory usage when doing that.

When I first tried it at my aws box (t2.micro, 1 core, 1 GIB ram) it crashed. But when I repeated at my personal rig, it works fine. I'll do some more testing, but maybe someone else should give it a try to (can't thrust myself about it any longer).

from acweb.

macedot avatar macedot commented on September 26, 2024

Confirmed: forwarding a range of "only" 100 ports, it does work at smaller aws box:

CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                                                      NAMES
effdd44f32a0        local/acweb         "/app/main"              7 seconds ago       Up 5 seconds        0.0.0.0:8000-8100->8000-8100/tcp, 0.0.0.0:9999->8080/tcp   acweb
75968fca7c69        mysql:latest        "docker-entrypoint..."   6 minutes ago       Up 6 minutes        0.0.0.0:3306->3306/tcp                                    ac-mysql
ubuntu@ip:~/acweb$

Although it allow docker image usage, one needs to pay special attention when configuring acServer ports, specially/specifically when setting up stracker ports because stracker port can only be a fixed amount of ports OR AC udp port + 42, as per stracker ini description.

Also, one should also forward some ports for UDP:

-p 8000-8100:8000-8100/udp

from acweb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.