PDA

View Full Version : CoD4 Server accessable from WAN but LAN IP shows even when connected via Domain/WAN


Veritas
09-27-2008, 02:38 PM
Pretty much just like the topic says...

I've got a Call of Duty 4 server running on a Windows Server 2003 machine. Its visible from WAN IP and I've got a Domain Redirect pointed to the WAN IP.

Connections via WAN and Domain both work fine. However.. once connected Pressing TAB shows the LAN IP 192.168.* , I know this is because in my commandline to run the server +set net_ip is 192.168.*

Is there any alternate configuration that will cause my DOMAIN NAME to display in the Score list ?

This is my current command line:

C:\CoD4\iw3mp.exe +set dedicated 2 +set net_ip 192.168.x.xxx +set net_port 28960 +exec server.cfg +map_rotate

server.cfg is in \CoD4\main\, relevant parts follow


// Network options
set net_ip "xxx.xxxxxxxx.org" // Set your servers IP address
set net_port "28960" // Set your port number
set com_hunkMegs "512"
set net_noipx "1" // Allow ONLY tcp/ip protocol, player/server communications

// Server Network Mode
set dedicated "2" // 0 = Listen, 1 = LAN, 2 = Internet

rudedog
09-27-2008, 05:29 PM
Sorry there is no way for the game (or any) to resolve domain names.

I've asked for it from the EA and ACT guys. Hell I remember a long time ago, sitting in the EA LA studio auditorium talking to the Pacific Assault MP devs and asking them about just this.

They thought it was a great idea and TBH I don't remember if there was any technical reasoning why it has never been done before. I was hoping it would be part of PA but we all know how that turned out.......

Veritas
09-27-2008, 11:30 PM
Actually, I've figured this one out. I disabled NAT in my router, so now each client does a DHCP Discover to ISP instead of router and each gets a WAN IP now.

So, It would seem the solution is, Disable NAT/DHCP in your router.

Then Winsock can bind properly to the given address via commandline, and it shows up in Tab :D

Only downside...is that i can no longer access my router without a Firmware Reset...but...everything is working so far :D

rudedog
09-28-2008, 07:47 AM
great news.

I assume you have more then one IP address from your ISP?

Veritas
09-28-2008, 11:53 PM
I think i get 3, but i am not sure...