Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TCP timeout while retrieving port mappings (ERROR: While updating UPnP port mapping. Failed with error code [5]) #70

Open
ggonmar opened this issue Nov 6, 2020 · 2 comments

Comments

@ggonmar
Copy link

ggonmar commented Nov 6, 2020

Hi there,

I apologize in advance for opening yet a second issue, but I am encountering a different problem when using this library when on a different SSID (and thus different router).

The point where I'm hitting the error is right after connecting to the IGD, when I see the following error on the logs:
`TCP connection timeout while retrieving port mappings
called addPortMappingEntry
Connecting to IGD with host [192.168.1.1] port [80]
Connected to IGD
deviceInfo->actionPath []
deviceInfo->serviceTypeName []
Content-Length was: 546

5123TCP5123192.168.1.231semaforito36000

TCP connection timeout while adding a port mapping
Apply action [GetSpecificPortMappingEntry] on port mapping [semaforito]
Connecting to IGD with host [192.168.1.1] port [80]
Connected to IGD

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetSpecificPortMappingEntry xmlns:u="">

5123
TCP
</u:GetSpecificPortMappingEntry>
</s:Body>
</s:Envelope>`

This is perpetuated and repeated every N seconds, thus limiting greatly the processing capacity of the ESP8266 - seems it is too focused on trying to sort out the UPnP so it does not do anything else :/

I am attaching to this issue a whole log of the initialisation of my server and the attempts TinyUPnP is doing, as well as the xmls it retrieves from the router.

I guess I need to do something about the line Apply action [GetSpecificPortMappingEntry] on port mapping [semaforito], but I am unsure how to do so, may I get some assistance??

BIG thanks in advance
RootDevice.xml.txt
WFADevice.xml.txt
LaCasaDeNemoErrorLog.txt

@ofekp
Copy link
Owner

ofekp commented Nov 19, 2020

Sorry for responding late.
Your router is weird.
Please try the code in PR #71.

@ofekp
Copy link
Owner

ofekp commented Dec 11, 2020

Have you tried pls?

Repository owner deleted a comment from rugal0123 Dec 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants