Odamex Message Boards

Community Discussion => Technical Support => Topic started by: Robotron on May 11, 2013, 11:33:41

Title: UPnP External IP is empty
Post by: Robotron on May 11, 2013, 11:33:41
When I run odasrv, it automatically uses my internal ip address.
Typing "cvarlist" in the console shows: (among other things)
sv_upnp_externalip ""
Otherwise, the server runs fine.
So, how do I make my server accessible to people outside of my home network? The server appears on the master server list, but the ip address is internal.

Thanks,
   Robotron

Title: Re: UPnP External IP is empty
Post by: capodecima on May 11, 2013, 19:46:01
addmaster master1.odamex.net:15000
addmaster master2.odamex.net:15000
try add this to config
but i bet there will some setting with your modem, not sure ...
Title: Re: UPnP External IP is empty
Post by: capodecima on May 11, 2013, 20:08:22
try add this to config
set sv_usemasters 1
addmaster master1.odamex.net:15000
addmaster master2.odamex.net:15000
Title: Re: UPnP External IP is empty
Post by: Robotron on May 12, 2013, 09:45:51
try add this to config
set sv_usemasters 1
addmaster master1.odamex.net:15000
addmaster master2.odamex.net:15000
Now it says:
"UPnP: router found but unable to get external IP address"
"Bound to ip: <my internal ip>"
"UPnP: Internal IP address is: <my internal ip>"

Title: Re: UPnP External IP is empty
Post by: Russell on May 20, 2013, 16:20:26
UPnP is not supported by all routers, some only have partial support.

What is the brand and model of your router?
Title: Re: UPnP External IP is empty
Post by: Robotron on May 22, 2013, 16:24:39
UPnP is not supported by all routers, some only have partial support.

What is the brand and model of your router?


It is a Cisco 1841. It's running Cisco IOS.
Title: Re: UPnP External IP is empty
Post by: Russell on May 27, 2013, 03:18:10
According to this page of your router http://bc.whirlpool.net.au/bc/hardware/?action=h_view&model_id=232 :

Code: [Select]
...Cisco does not support UPnP on any of their routers..
Title: Re: UPnP External IP is empty
Post by: Robotron on May 27, 2013, 10:45:33
According to this page of your router http://bc.whirlpool.net.au/bc/hardware/?action=h_view&model_id=232 :

Code: [Select]
...Cisco does not support UPnP on any of their routers..

Ah, that makes sense. Is there any way to get around this? There is a "sv_upnp" variable in the server congig, but setting it to "0" doesn't change the ip odasrv binds to.
Title: Re: UPnP External IP is empty
Post by: Russell on May 29, 2013, 05:44:31
My guess is that you'll have to use port forwarding on your router, not easy on cisco ios (unless your router has a web interface) so you may need to investigate this on a google search

1) Set up odasrv to listen on a specific port (preferably one greater than 1024) using the -port command line parameter
2) Configure your router to port forward to the machines ip address running odasrv, use the same port as what you did in step 1, the protocol is UDP

Hope this is a little helpful