Message Boards

Topic: UPnP External IP is empty  (Read 12466 times)

Robotron

  • Nobody
UPnP External IP is empty
« 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


Offline capodecima

  • Posts: 122
  • Brodamex Player
    • View Profile
Re: UPnP External IP is empty
« Reply #1 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 ...

Offline capodecima

  • Posts: 122
  • Brodamex Player
    • View Profile
Re: UPnP External IP is empty
« Reply #2 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

Robotron

  • Nobody
Re: UPnP External IP is empty
« Reply #3 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>"


Offline Russell

  • Developer
  • Posts: 70
    • View Profile
Re: UPnP External IP is empty
« Reply #4 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?

Robotron

  • Nobody
Re: UPnP External IP is empty
« Reply #5 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.

Offline Russell

  • Developer
  • Posts: 70
    • View Profile
Re: UPnP External IP is empty
« Reply #6 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..

Robotron

  • Nobody
Re: UPnP External IP is empty
« Reply #7 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.

Offline Russell

  • Developer
  • Posts: 70
    • View Profile
Re: UPnP External IP is empty
« Reply #8 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