Jump to content

Home

Dedicated Linux Server Won't listen on the ip!!


Stavencleft

Recommended Posts

Hi I have a problem with my server:

 

Redhat Linux 7.2

2 Internet Connections : DSL and Cable

 

==========server.cfg snippet===========

 

set net_ip 216.27.146.3

set net_port 28070

 

===========startup snippet============

14685 files in pk3 files

execing mpdefault.cfg

execing jk2mpconfig.cfg

execing autoexec.cfg

Hunk_Clear: reset the hunk ok

--- Common Initialization Complete ---

Opening IP socket: localhost:28070

Hostname: localhost.localdomain

Alias: localhost

IP: 127.0.0.1

=================================

 

Basically, I want that puppy to listen on 216.27.146.3 only and not on my cable interface. It seems to only work on my cable one as well, where as I have counter-strike server setup and running on the DSL interface right now!

 

Any body try forcing it to an ip and having it work?

 

Thanks!

Link to comment
Share on other sites

Have you tried actually connectiong to the ip address that you forced? I think you'll find that it's probably working.

 

The server seems to listen on all interfaces, I haven't had a problem yet and it's always reported using localhost to me.

Link to comment
Share on other sites

I'm using +set dedicated 2 (I read that from the sticky), i think i'll try +set dedicated 0 when I get home.

 

The JK2 server doesn't work on DSL because of the way I setup my routing. Stuff only goes out on DSL when the source ip starts with my dsl network and everything else by default goes out to cable (default gw).

 

Thanks for your replies :D

 

stave

Link to comment
Share on other sites

Well, the only practical difference between dedicated 2 and 0 is that with 2 the server notifies the master server that it is active and thus shows up on the list of servers to join in-game. By setting it to 0, it does not advertise itself--however people can join by ip.

 

After all the startup console spam goes by, type: status Make sure that the map rotation has been started. If it says, "server not running" then you need to add something to your command line and/or server.cfg to start a map. If it says it's not running, type: map ffa_bespin and see if it finishes the process. You can verify with 'status' afterward.

Link to comment
Share on other sites

Where did using "net_ip" come from? Was that the proper var in beta or something?

 

./jk2_sk4 +set ip x.x.x.x +set dedicated 2 +exec sk4.cfg

 

That's the only way to "force" the listen IP on a server that I've found over the last 3 days. During startup the server *does* state the machines hostname and resolved ip, but it also appends a line in the startup to the effect of "IP: x.x.x.x" corresponding to the address I supplied.

 

-h

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...