aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: UPnP not working correctly  (Read 4468 times)

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
UPnP not working correctly
« on: July 17, 2011, 10:59:16 PM »

Hi

I just found a strange behavior in aMule SVN. I have tried using it in ubuntu 10.04 and CentOS 6.0 and it does the same in both. Tested versions are SVN r10492 and r10589. The issue is that UPnP will only forward correctly the UDP ports, but not the TCP one. Any clues on hog to debug this? it used to work with this very same router, and it hasn't been updated in any way ever (neither firmware nor configuration). I already tried rebooting it, but the problem persists. IPtables is turned off in the computer running aMule so that cannot be the issue.

Thanks!!

Edit: I just created an RPM for aMule 2.3.1 RC1, uninstalled SVN r10589 (which has the problem) and installed the new RPM for 2.3.1 RC1 and UPnP is working again. Maybe something changed between 2.3.1 and current SVN which leads to the problem.
« Last Edit: July 17, 2011, 11:28:49 PM by skolnick »
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: UPnP not working correctly
« Reply #1 on: July 18, 2011, 10:30:22 PM »

Any clues on hog to debug this?
Hogs are usually not great at debugging.  ;D
(Sorry for being silly, I was actually thinking in this direction first until I realized it's a typo.)

Are you using the same UPnP version for both builds, and which is it? You know, you need 1.6.13. Also same wx version?
I couldn't find anything upnp related between 10513 and 10589.
Also:
Quote
Tested versions are SVN r10492 and r10589.
If these both fail, but 10513 (RC1) works I'd guess it's build related somehow.


Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: UPnP not working correctly
« Reply #2 on: July 20, 2011, 06:50:57 PM »

Hi Stu

Thanks for replying. Actually, I was not aware of the requirement of libupnp >= 1.6.13, and I think that's the problem, because CentOS uses 1.6.6 (stupid long-term distros, always using ancient stuff LOL). I'll try to install my own libupnp 1.6.13 and see if the problem persists. Regarding your other questions, the environment was exactly the same for all versions, the wx is 2.8.12, same compiler, same parameters to configure, same everything, only difference being the aMule version used.

Regards.
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: UPnP not working correctly
« Reply #3 on: July 20, 2011, 09:59:16 PM »

No idea about 1.6.6. We are having problem reports from people using 1.8, which is apparently an unsupported alpha which doesn't even compile with aMule. So actually it's rather libupnp == 1.6.13.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: UPnP not working correctly
« Reply #4 on: November 14, 2011, 01:10:08 AM »

I'm sorry to reply so late to this issue. I've been really busy. I tested updating the libupnp library from 1.6.6 to 1.6.13 and noticed two things:

1. UPnP now works fine with my router
2. While compiling aMule, there are no more warnings coming from unused variables on the upnp includes.

So, it fixed two issues :)

Regards.
Logged