LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-30-2008, 08:38 PM   #1
Skillz
Member
 
Registered: Sep 2007
Posts: 252

Rep: Reputation: 32
What is this?


Code:
cbt             7777/tcp                        # cbt
cbt             7777/udp                        # cbt
interwise       7778/tcp                        # Interwise
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?

Last edited by Skillz; 04-30-2008 at 08:50 PM.
 
Old 04-30-2008, 10:29 PM   #2
fukawi2
Member
 
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 449

Rep: Reputation: 34
As root:
Code:
lsof -i
Will list all the open TCP connections. Find the one you're interested in, the second column has the PID:
Code:
ps aux | grep <PID_NUM>
That should give you the full path to the binary to investigate further. Look at the other files in that directory etc.

What distro are you on? You might be able to get more information from the package manager. For example:
Code:
yum whatprovides /path/to/binary
dpkg --search /path/to/binary
pacman --owns /path/to/binary
 
Old 04-30-2008, 11:33 PM   #3
Skillz
Member
 
Registered: Sep 2007
Posts: 252

Original Poster
Rep: Reputation: 32
Running lsof -i shows me a lot of information, however I do not see cbt, interwise or ports 7777 - 7778 listed anywhere in there.

Double checked /etc/services to make sure it was still being listed and they are both still there.
 
Old 04-30-2008, 11:35 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
As I recall, /etc/service just gives a port number to text mapping - it doesn't really do anything meaningful
 
Old 05-01-2008, 12:14 AM   #5
fukawi2
Member
 
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 449

Rep: Reputation: 34
Quote:
Originally Posted by billymayday View Post
As I recall, /etc/service just gives a port number to text mapping - it doesn't really do anything meaningful
Correct

Try running this as root:
Code:
netstat -ln | egrep "7777|7778"
 
Old 05-01-2008, 12:43 AM   #6
Skillz
Member
 
Registered: Sep 2007
Posts: 252

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by fukawi2 View Post
Correct

Try running this as root:
Code:
netstat -ln | egrep "7777|7778"
I got nothing in return.

CentOS 4 is my OS by the way.
 
Old 05-01-2008, 12:46 AM   #7
fukawi2
Member
 
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 449

Rep: Reputation: 34
Quote:
Originally Posted by Skillz View Post
I got nothing in return.
OK, your problem isn't something else bound to that port... Can you post the exact errors?
 
Old 05-01-2008, 12:51 AM   #8
Skillz
Member
 
Registered: Sep 2007
Posts: 252

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by fukawi2 View Post
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.
 
Old 05-01-2008, 12:56 AM   #9
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
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
 
Old 05-01-2008, 12:57 AM   #10
Skillz
Member
 
Registered: Sep 2007
Posts: 252

Original Poster
Rep: Reputation: 32
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.

Again thanks everyone.
 
Old 05-01-2008, 01:01 AM   #11
Skillz
Member
 
Registered: Sep 2007
Posts: 252

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by billymayday View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration