Code Monkey home page Code Monkey logo

Comments (8)

saguaro-yerba avatar saguaro-yerba commented on July 18, 2024 1

Can you elaborate? I do not understand how iptables will help with this

If the container has an internet connection and you just need to forward the udp port.
I also run this on Docker on my local network and all I need is UDP port forwarding:
docker run -p 27015:27015/udp [...]
Your server should be visible from Steam Masterserver API:
http://api.steampowered.com/ISteamApps/GetServersAtAddress/v0001?addr=&format=json

from tiny-csgo-server.

saguaro-yerba avatar saguaro-yerba commented on July 18, 2024

You can achieve this by creating iptables rules

from tiny-csgo-server.

R1KO avatar R1KO commented on July 18, 2024

Can you elaborate? I do not understand how iptables will help with this

from tiny-csgo-server.

yourmnbbn avatar yourmnbbn commented on July 18, 2024

Haven't tested in docker, I'll take a look at this when I have time.

from tiny-csgo-server.

R1KO avatar R1KO commented on July 18, 2024

Can you elaborate? I do not understand how iptables will help with this

If the container has an internet connection and you just need to forward the udp port. I also run this on Docker on my local network and all I need is UDP port forwarding: docker run -p 27015:27015/udp [...] Your server should be visible from Steam Masterserver API: http://api.steampowered.com/ISteamApps/GetServersAtAddress/v0001?addr=&format=json

It works! But it require specify different ports for each container because add to master server with port specified in port option =(

from tiny-csgo-server.

saguaro-yerba avatar saguaro-yerba commented on July 18, 2024

Can you elaborate? I do not understand how iptables will help with this

If the container has an internet connection and you just need to forward the udp port. I also run this on Docker on my local network and all I need is UDP port forwarding: docker run -p 27015:27015/udp [...] Your server should be visible from Steam Masterserver API: http://api.steampowered.com/ISteamApps/GetServersAtAddress/v0001?addr=&format=json

It works! But it require specify different ports for each container because add to master server with port specified in port option =(

I'm not sure if I understand correctly, but you can try using host network --network host, then you don't need to do redirect UDP ports on containers

from tiny-csgo-server.

R1KO avatar R1KO commented on July 18, 2024

I'm not sure if I understand correctly, but you can try using host network --network host, then you don't need to do redirect UDP ports on containers

i know) I have done so now, but I'm afraid of possible problems associated with it.

Thanks for response)

from tiny-csgo-server.

saguaro-yerba avatar saguaro-yerba commented on July 18, 2024

I'm not sure if I understand correctly, but you can try using host network --network host, then you don't need to do redirect UDP ports on containers

i know) I have done so now, but I'm afraid of possible problems associated with it.

Thanks for response)

Yeah that's true, it can cause some problems, port forwarding on Docker worked better for me 😀

from tiny-csgo-server.

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.