Jump to content

Home

Firewalling, NAT, and Linux JK2 server


overmonkey

Recommended Posts

Sith buddies -

 

I've got ./jk2ded on a K6-2 450/64M running Mandrake 8.1. This box sits on my LAN with an address 192.168.xx.xx, and connects to the net via DSL. My DSL modem, unfortunately, is a PCI Speedstream 3060 - no linux drivers - so it's sitting in my XP Pro box, which connects as gateway for the other machines, and shares the connection.

 

This works fine for most things.

 

I can run the server in LAN mode np - ./jk2ded +dedicated 1 +map ffa_bespin

 

My server.cfg is as follows:

// Server Config

seta sv_hostname "Neubeez Paradise"

//seta g_motd "No Urinating, please"

//rconpassword "yourmamaismypassword"

 

seta sv_maxclients 8

seta g_inactivity 0

sv_maxRate 10000

set g_allowvote 0

set timelimit 20

set capturelimit 20

set g_autoMapCycle 1

set g_maxForceRank 7

set g_privateDuel 1

set g_saberLock 1

set g_duelWeaponDisable 65531

 

map ffa_bespin

 

I've got a hole poked in my firewall app for port 28070, but when I run the app as a 'net server, it comes back with this:

Opening IP socket: http://www.xxx.yyy.zzz:28070

ERROR: UDP_OpenSocket: bind: Cannot assign requested address

Opening IP socket: http://www.xxx.yyy.zzz:28071

ERROR: UDP_OpenSocket: bind: Cannot assign requested address

Opening IP socket: http://www.xxx.yyy.zzz:28072

ERROR: UDP_OpenSocket: bind: Cannot assign requested address

Opening IP socket: http://www.xxx.yyy.zzz:28073

ERROR: UDP_OpenSocket: bind: Cannot assign requested address

Opening IP socket: http://www.xxx.yyy.zzz:28074

ERROR: UDP_OpenSocket: bind: Cannot assign requested address

Opening IP socket: http://www.xxx.yyy.zzz:28075

ERROR: UDP_OpenSocket: bind: Cannot assign requested address

Opening IP socket: http://www.xxx.yyy.zzz:28076

ERROR: UDP_OpenSocket: bind: Cannot assign requested address

Opening IP socket: http://www.xxx.yyy.zzz:28077

ERROR: UDP_OpenSocket: bind: Cannot assign requested address

Opening IP socket: http://www.xxx.yyy.zzz:28078

ERROR: UDP_OpenSocket: bind: Cannot assign requested address

Opening IP socket: http://www.xxx.yyy.zzz:28079

ERROR: UDP_OpenSocket: bind: Cannot assign requested address

Sys_Error: Couldn't allocate IP port

 

This is with this command line:

 

./jk2ded +dedicated 2 +map ffa_besping +exec server.cfg +set net_ip http://www.xxx.yyy.zzz

 

Much obliged -

 

das ubermonkey

Link to comment
Share on other sites

I'm guessing that the ip you're using for +set net_ip is the your external ip address? Try removing +set net_ip first. Most of the time, +set net_ip is only really needed when you have more than one NIC. I assume you are forwarding UDP for ports 28070-28080 from your gateway to the server. So, give that a shot first and we'll go from there.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...