LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices

Reply
 
Search this Thread
Old 08-15-2006, 07:01 PM   #1
RHLinuxGUY
Member
 
Registered: Oct 2003
Distribution: Ubuntu 7.04
Posts: 889
Blog Entries: 1

Rep: Reputation: 30
How do you know what ports to use in a game?


I was reading around portforwarding.com and a in the readme/walkthrough it said that game servers (or any type of server for that matter) require certain ports. Where on earth do you find that information? Whenever I tried to set up a server along with setting up ports, I never found that information in any readme or tutorial online for that game (except just recently when I found portforwarding.com). And the only time I got information such as that was Steam server setups, but it never went into any detail on how they aquired the ports, just that it was the right ports. On port forwarding for certain games are, I would like to know how portforwarding.com aquired those 'right' ports in the first place?
 
Old 08-15-2006, 07:06 PM   #2
J_K9
Member
 
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700

Rep: Reputation: 30
Well, there are several ways of doing this.

First of all you can just run the server, and see what ports are being used by firing up WireShark and taking a look at the packets.

Secondly, you can look at tutorials on the internet - I know for a fact that there are plenty of Steam server tutorials which state what ports are used. If you search my website for "CS:Source," you'll find my own tutorial - the port list is on there too

HTH,

-jk
 
Old 08-16-2006, 12:48 AM   #3
RHLinuxGUY
Member
 
Registered: Oct 2003
Distribution: Ubuntu 7.04
Posts: 889
Blog Entries: 1

Original Poster
Rep: Reputation: 30
O no, I never said that there wasn't a Steam tutorial that didn't tell you what ports to use. I just never found that told you how you find out. Thank you I'll look into WireShark.
 
Old 08-20-2006, 11:03 PM   #4
RHLinuxGUY
Member
 
Registered: Oct 2003
Distribution: Ubuntu 7.04
Posts: 889
Blog Entries: 1

Original Poster
Rep: Reputation: 30
I started up MOHAA dedicated server and I saw this line... is this the port number I was looking for or no?

Opening IP socket: localhost:12203
 
Old 08-21-2006, 08:29 AM   #5
J_K9
Member
 
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700

Rep: Reputation: 30
Yes, that is the port number you were looking for: 12203

 
Old 08-21-2006, 11:41 AM   #6
Ehwaz
Member
 
Registered: Aug 2006
Distribution: FC, Mandriva, Suse
Posts: 52

Rep: Reputation: 15
I know BF2 (Battlefield 2) displays it's port whenever you search for games in MP or even SP. When you start an SP game, your IP and port are displayed. Very handy for your LAN, since other people can simply plug into the same switch and use their game to connect to each other. I think you can do co-op and MP with that easily, not to mention playing in a huge LAN...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot Open Mail Server Ports 25, 110, and 220. Other Ports will open. Binxter Linux - Newbie 9 11-29-2007 02:03 AM
will you play windows game or linux native game pleasehelpme Linux - Newbie 16 04-29-2007 08:58 PM
How to play java game(like yahoo game) in firefox? Mathsniper Debian 1 01-04-2006 10:00 AM
2D/3D Game EASY Game Development Software tedjordan Linux - Games 1 03-22-2005 06:40 AM
game not receving game list from master server Rnastyracer Linux - Games 2 04-02-2004 10:20 PM


All times are GMT -5. The time now is 01:51 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration