Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i have 2 servers of counter-strike on my linux. One of them was setup by a friend of mine and when i do "connect cs.name.com" it's working (it is on port 27015).
Recently i put a second server, but i want to know how or where or what i must change in order to connect with "connect war.cs.name.com", instead of "connect xxx.xxx.xxx.xxx:27016".
with counter strike, i've noticed when i log into a server and dont specify a port, it defaults me to 27015. If all you supply is the IP (which is the same
as just supplying a domain name) then it will probably always default to
27015, much the same way as asking for a web page. You never ask for the port (80) unless the server is not running on the default port (like 8080). So you may not be able to do this....atleast not in anyway that is inherently easy.
I've been wrong before, so I could be wrong now. That is based on theory and observation of joining CS servers (i created one once and tested it out, i didnt specify a port when connecting but it gave me port 27015 by default).
both servers are working simultanios, but if i want to log on the first one, i can type from console "connect cs.name.com". If i want to connect to the second server, i do it from the console like this: "connect 194.176.185.254:27016". What i want is to do on the second server just this: "connect war.cs.name.com".
This is my problem: how i bind the ip and the port to the name "war.cs.name.com" ?
i don't want to do this thing every time i install a windows or a linux from my network
is there any other method?
like to put the address on the dns on my server (but i don't know how to o that)?
you cannot get a hostname to translate into an IP AND port.
as far as i know about ip's and counter-strike, it wont work. you can't get
a dns server to specify a port, only the IP that the hostname goes to, and CS, when only given an IP defaults to the 27015 port. People logging in will have to do something like war.cs.name.com:27016 to get port 27016. I posted this before. If im wrong PLEASE by all means correct me. I understand that u have 2 servers running on 1 machine on 2 different ports, but CS wont default to port 27016 when just given a host name. what you will end up with in the end is 1 IP, 1 Computer, 2 host names. You can add all the hostnames you want to point to that 1 IP but when people connect to your server, if they dont specify a port it will always default to 27015 no matter what hostname they decide to connect with.
Last edited by Robert0380; 06-16-2003 at 01:44 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.