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 was running a UT server, shut it down to do some maintenance work to it. When I started it back up, it refused to bind to the default UT port of 7777.
So I looked in /etc/services/ to find out what programs was using which ports, did some google searches on cbt and interwise and nothing helpful is turning up.
What is this program/service and how can I kill it/make it use a different port?
OK, your problem isn't something else bound to that port... Can you post the exact errors?
Not really getting an "error" it just when I go to start my UT server, it doesn't bind to the default port of 7777. It binds to some random number that's really high, in the 5 digit range.
Nothing in my UnrealTournament.ini (It's where the game port can be configured/changed from) was edited when I closed it. Even viewing it, it still shows as it should be 7777 (the default) but it simply will not bind to that port.
So I started doing some digging to see if something else was using that port when I ran across that in /etc/services it's the only place I found that showed something else using the port 7777.
You say "refused to bind to that port", but what does that mean? Does the config for the UT server talk about port usage - the equivalent of a "Listen" directive?
Quote:
So I started doing some digging to see if something else was using that port when I ran across that in /etc/services it's the only place I found that showed something else using the port 7777.
Note from comments above that services isn't using the port, it's only telling you what it's often referred to as. Means for example that in iptables I can block cbt or block 7777, but they mean the same thing
Oh wow, I found out the problem. Seems something did change that file, the UnrealTournament.ini file was missing a [ at the beginning of the section that declared the section. Put it back in place and UT started recognizing the port it's supposed to.
Thanks so much for everyone's help in this matter, I did learn a lot more cool tricks for checking things out now as well.
You say "refused to bind to that port", but what does that mean? Does the config for the UT server talk about port usage - the equivalent of a "Listen" directive?
Note from comments above that services isn't using the port, it's only telling you what it's often referred to as. Means for example that in iptables I can block cbt or block 7777, but they mean the same thing
Oh I understand now, I didn't know that. I just assumed it was "ports being used by services".
Seems it was human error all along, though I did not edit the file, but apparently I must have opened it thinking I had to, then maybe closed it and accidentally deleted that character. (its at the very top of the file)
When I mean "refused" I was just using that term as "ut wont bind to the correct port, it binds to a random port no matter what I do" I wasn't getting any kind of "permission denied" or "ucc refused to bind to port 7777" messages or anything like that. Just when I looked in the server log, I could see that it was using a port that it wasn't supposed to.
I found it by doing another test. I was going to change the default port in that file to something else, to see what would happen. I almost instantly noticed the missing character when I opened the file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.