PDA

View Full Version : how to bind server to interface


PaperCut
12-23-2002, 10:46 PM
Does there exist a method to start a dedicated Spearhead or MOH server bound to a specific interface for win32? My server will be connected via a DSL dialer and it seems to default to the LAN interface.

For my shortcut, can I simply try .....\MOHAA.exe +set sv_nolan or something similar. My other options are to un-configure the LAN interface on the machine each time I want to broadcast the game out to the internet. Such a pain to do so.

A complete list of command line options would be most helpful. :?

Regards,

PaperCut
12-23-2002, 10:49 PM
... and no, there are no firewalls, (winME), no routers

SNYPE
12-25-2002, 01:16 PM
Hey Papercut.
Did you shutoff the Internet Sharing?
You should probably invest in an Internet Router.
I know where youre going with your question, and yes it is possible but, you still only get 1 IP from your ISP and you dont want to bind that to your server (and you wont be able to play the game from your lan).
With an INternet Router, you can share that 1 IP and run multiple servers thru it to the outside. Theres really no easier method, and they are really cheap right now. Ive seen them as low as $39.
I run a Netgear, the Linksys is good too. Make sure the one you get can do Port Forwarding (run a server on the lan).

PaperCut
12-26-2002, 01:42 AM
NO!... internet sharing? I am not trying to use this machine as a router. I simply ran the default dedicated server setup on a separate machine, with its own connection to the net.

NO!.. my ISP will give me more than one IP. Most do not, however under the terms of my agreement I can aquire more than one so please drop the "go buy a router..." ROUTER NOT REQ'd!!

The server does not seem to want to accept traffic on the interface connected to the internet. I'm not sure if anyone is familiar enough with how the DSL dialiers work but they simply configure your ethernet card to have a real world internet-routable IP on top of the static private IP you give to work on your LAN. If one was to run the command *ipconfig* from a command prompt you would see the following:

0 Ethernet Adaptor :
IP Address ...................... X.X.X.X
Subnet Mask .................. 255.255.X.X
Default Gateway .............. X.X.X.X

1 Ethernet Adaptor :
IP Address ...................... 192.168.X.X
Subnet Mask .................... 255.255.255.0
Default Gateway ............... 192.168.X.X

(note, these two adaptors refer to a single Ethernet Card)

MY QUESTION IS - why will it only bind to the private IP? I must unconfigure the private IP in order to have the game server accept traffic from the net. Otherwise I shall have to add another Ethernet Card.

Thanks

Hey Papercut.
Did you shutoff the Internet Sharing?
You should probably invest in an Internet Router.
I know where youre going with your question, and yes it is possible but, you still only get 1 IP from your ISP and you dont want to bind that to your server (and you wont be able to play the game from your lan).
With an INternet Router, you can share that 1 IP and run multiple servers thru it to the outside. Theres really no easier method, and they are really cheap right now. Ive seen them as low as $39.
I run a Netgear, the Linksys is good too. Make sure the one you get can do Port Forwarding (run a server on the lan).

SNYPE
12-26-2002, 12:14 PM
Its difficult to determine what your network config is thru postings, thanks for providing a little more info this time.
You need to get a picture of what is going on here to understand this. Go here and check out these network configs: http://www.dslreports.com/pictures
Your network is #6, the ideal is #8 or #9. The reason you still cant get on the net is because there is NAT software installed that is translating your internal IP to an external IP, in other words its acting as a NAT firewall router. This will not work for what you need to do. Sure, you can get additional IPs but you still have to fight your NAT problem (which is the CAUSE of your trouble).
The purpose of a firewall (hardware or software) is to SEPARATE your internal network (lan) from the outside public network. It passes packets across this interface based on rules (allow this or dont allow this). Most Internet Routers are already setup to do this (called Port Forwarding). Your NAT software is what is preventing your server from being seen on the net, thats its job!!!
You basically have 3 choices:
1. run the server with a public IP and no firewall--NOT recommended!
2. continue to try and use your NAT firewall/software and put up with trying to figure out how to force your packets thru it (IF its even POSSIBLE??)
3. buy an Internet Router and be up and running in 15 mins (not to mention the better security, lan sharing, ease of use).

major_sturm
01-01-2003, 10:03 PM
Hi all,
Trying to set up a non dedicated server for Spearhead.
I am behind a firewall, but I think I have most if not all of the ports
set correctly. Other people can join the game if they specify the
IP address:12300, but the game does not show up listed on the in-game network game browser. Any ideas?
Thanks in advance.

bakerman
01-02-2003, 03:36 AM
I have the same problem.

OS: win XP Pro

I start the server with the option "set sv_gamespy 1"
Others can connect to my server using my IP address but the game does not appear in the in-game server list.

Anyone??

SNYPE
01-02-2003, 11:12 AM
Guys in order for the game to show on game browsers such as GameSpy (which is the same prog used for the ingame browser), the server needs to transmit certain info to the game browser server. Gamespy needs the following ports open in order to do its job:

Working Around the Firewall / Proxy
If you are behind a firewall/proxy and are able to change its settings, Arcade needs the following TCP ports open in order to function:
ˇ 27900 (Master Server UDP Heartbeat)
ˇ 28900 (Master Server List Request)
ˇ 29900 (GP Connection Manager)
ˇ 29901 (GP Search Manager)
ˇ 13139 (Custom UDP Pings)
ˇ 6515 (Dplay UDP)
ˇ 6500 (Query Port)
ˇ 6667 (IRC)
ˇ 3783 (Voice Chat Port)
(The last 2 ports are really not necessary in most cases.)

You need to configure your firewall to forward these ports or if thats not posssible, move the server to a DMZ if your firewall has one available.
Also add another line to your cfg file:
set ui_dedicated 1

major_sturm
01-02-2003, 10:42 PM
Thanks for the help
I can now run a non-dedicated server but it looks like I am only visible in GameSpy when I am non-dedicated. When dedicated I am visible without gamespy.

Dutch_com_freak
01-04-2003, 05:32 PM
hiya is there some way to force the server @ a ip exp 192.168.1.104

cous the ded. server gives me a headace with localhost, GRRRRR!

where setting up a ded. tow. server...

the server log:

--- Common Initialization ---
Medal of Honor Spearhead 2.11 win-x86 Nov 19 2002
----- FS_Startup -----
Current search path:
C:\Program Files\EA GAMES\MOHAA\mainta\pak3.pk3 (311 files)
C:\Program Files\EA GAMES\MOHAA\mainta\pak2.pk3 (399 files)
C:\Program Files\EA GAMES\MOHAA\mainta\pak1.pk3 (6969 files)
C:\Program Files\EA GAMES\MOHAA/mainta
C:\Program Files\EA GAMES\MOHAA\main\Pak7Nl.pk3 (102 files)
C:\Program Files\EA GAMES\MOHAA\main\Pak6Nl.pk3 (475 files)
C:\Program Files\EA GAMES\MOHAA\main\Pak5.pk3 (259 files)
C:\Program Files\EA GAMES\MOHAA\main\Pak4.pk3 (593 files)
C:\Program Files\EA GAMES\MOHAA\main\Pak3.pk3 (669 files)
C:\Program Files\EA GAMES\MOHAA\main\Pak2.pk3 (4722 files)
C:\Program Files\EA GAMES\MOHAA\main\Pak1.pk3 (396 files)
C:\Program Files\EA GAMES\MOHAA\main\Pak0.pk3 (11174 files)
C:\Program Files\EA GAMES\MOHAA/main

----------------------
26069 files in pk3 files
execing default.cfg
execing buildver.cfg
execing menu.cfg
execing newconfig.cfg
execing localize.cfg
Config: unnamedsoldier.cfg
execing configs/unnamedsoldier.cfg
couldn't exec localized.cfg
execing autoexec.cfg
couldn't exec custom.cfg
...detecting CPU, found Intel Pentium III

------- Input Initialization -------
Initializing DirectInput...
Couldn't set DI coop level
Falling back to Win32 mouse support...
------- Input Initialization Complete ------- 202
You are now setup for medium mode.
Winsock Initialized
Opening IP socket: localhost:12203
Hostname: fake-pc
IP: 192.168.1.104
--- Common Initialization Complete --- 3646 ms
Working directory: C:\Program Files\EA GAMES\MOHAA
Loading Localization File global/localization.txt
--- Error: Invalid Entry... RefName: German Finden und zerstören Sie die Nebelwerfer. [noch &&&] corrects Finden und zerstören Sie die Nebelwerfer. [noch &&& ] LocName: Vind en vernietig de Nebelwerfers. [&&& resterend]noch &&&] corrects Finden und zerstören Sie die Nebelwerfer. [noch &&& ] Attempting to Recover.
--- Warning: Recovered From Error, Data May have been lost.
execing tow.cfg
g_gametype will be changed upon restarting.
sv_maxclients will be changed upon restarting.
------ Server Initialization ------
Server: obj/MP_Druckkammern_TOW
SkeletorCacheFileCallback: Could not open binary file 'newanim/models/player/allied_oss.skc' or 'models/player/allied_oss.skc'
SkeletorCacheFileCallback: Could not open binary file 'newanim/models/player/allied_oss_fps.skc' or 'models/player/allied_oss_fps.skc'
^~^~^ Box data is corrupted for 'models/human/allied_pilot/allied_pilot.skd'
^~^~^ Morph targets data is corrupted for 'models/human/allied_pilot/allied_pilot.skd'
SkeletorCacheFileCallback: Could not open binary file 'newanim/models/player/german_elite_gestapo.skc' or 'models/player/german_elite_gestapo.skc'
SkeletorCacheFileCallback: Could not open binary file 'newanim/models/player/german_elite_gestapo_fps.skc' or 'models/player/german_elite_gestapo_fps.skc'
SkeletorCacheFileCallback: Could not open binary file 'newanim/models/player/german_winter1.skc' or 'models/player/german_winter1.skc'
SkeletorCacheFileCallback: Could not open binary file 'newanim/models/player/german_winter1_fps.skc' or 'models/player/german_winter1_fps.skc'
SkeletorCacheFileCallback: Could not open binary file 'newanim/models/player/german_winter2.skc' or 'models/player/german_winter2.skc'
SkeletorCacheFileCallback: Could not open binary file 'newanim/models/player/german_winter2_fps.skc' or 'models/player/german_winter2_fps.skc'
^~^~^ Add the following line to the *_precache.scr map script:
cache models/human/allied_pilot.tik
An objective has been added!

also there are alot of other failures... buh they did not make a problem the first time...... reinstalled and uninstalled many times, so many i can even remember the 2 serials.... LOL

and it did work for a few day's... where working behind router as a dmz client... confugured @ port 192.168.1.104 normally the: Opening IP socket: localhost:12203 should be Opening IP socket: 192.168.1.104:12203 and then it works! buh it alway's comes up with this localhost thing to play on the local network :(

n e :idea: :idea: ???

major_sturm
01-05-2003, 02:41 PM
You can do a set net_ip <your internet_IP_ADDR>
where <your internet_IP_ADDR> is whatever address is assigned to
your router by your ISP. You do that in the console. You need to do a
restart> after you do this.

I would not run my server in a DMZ UNLESS
this machine was only used as a gameserver and nothing else. It took me
awhile but I finally got settings that work, see previous post.
I only have a cable modem but have run with 16 clients on SP w/o
a problem, and I am behind a Linksys Router.
snipersmile

Dutch_com_freak
01-05-2003, 06:28 PM
then i'd have to restart my server...

buh i found it :D

exec like this

server.exe +set net_ip 000.000.000.000 +exec exec.cfg

where the server.exe is the exe for speakhead aswell as the normal mohaa server
and where the exec.cnf is the config file of your server

u could even include net_port 12204 of what ever port u want to... :D

thanks for the support :D