-
Notifications
You must be signed in to change notification settings - Fork 17
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
Gateway info is not valid #51
Comments
No device on your network responded to the M-SEARCH message. Can you confirm that your internal network is 192.168.29.0? do the routers have the same address format (except for the last number)? I do not know Samsung S7 Mobile HotSpot but I am guessing it is cellular network? I am not sure this can work since cellular networks to not give you much control, so I am not sure you will be able to check what I asked on this router. |
This seems to be related to issue #35 Can you take the code from master branch and try again? Let me know how it went please. |
why is it listening on 5351? I did see a post about issues with UPnP specifically with your router: Have you tried that firmware update? |
I am not yet sure it actually means they listen on that port, it might mean something else. Can you please read this short post and perform the actions described in it? |
Can you change this line to the 5351 port: If that does not work, please restore 1900 port. Then, we'll need to set you up with |
Hi ofekp, i did try to mess with the port number from your source code. I just read that Asus router doesn't allow Upnp feature to the WAN, LAN devices only... I guess that's why no matter if i turn on or off Upnp feature there's no response at all... |
That looks unfortunate... I am willing to keep looking for the issue, but we will need to execute upnpc commands from within the LAN. Do you have any other device in your network that is using UPnP and puts rules dynamically in your router? |
The plot thickens! I found a workaround for
Then please copy paste the output here. I still need to know the layout of your network too. |
I use Comcast cable internet and have only 1 modem and 1 router. Currently running with 1 raspberry Pi that i can connect remotely with tightvnc service, 2 smart plug devices that i can control from anywhere, 1 PS4 and several mobile devices (iphones) and Smart TVs... very standard i think. |
OK, sounds standard, please try the upnpc for windows and and let's see what we get. |
Made a PR for you, if you feel adventurous (I have yet to test on my device) please give it a shot: Updated the PR. Please make sure to use commit with hash |
Darn, I made a mistake that caused it to behave the same... new hash is But please note that the output indicates that you're using the library from Arduino Library Manager and not from the branch I created. You'll need to go to the folder where the package is and override the code there in both .h file and .cpp file. |
Still timeout? Seems like your Netgear router is also prone to UPnP issues: The claim that: Can you please check what firmware you're running there? |
Here's the output file |
so no "timeout" message after the M-SEARCH is sent? Did you wait long enough? |
Yes, i didn't capture all of them in the text file. My bad. This is the full log. |
Added another device type, please give the PR another try. |
Just did. Same result. Here's the log. |
Can you type in the path to the xml file in your browser that was printed by the upnpc command that you attached in this comment and attach the result here please? |
Hi ofekp, this is what i got after entered the info you asked |
Now this please: And this: And this: 😄 |
Here you go ! |
Can you give it a try with master branch but with the two changes in the ino file? Just to be clear, talking about these two additions in the ino file:
|
Is this a dual band router? If so, can you try to disable 5Ghz band and try again? |
Please try the same PR again, this should do the trick this time. I extended the ino example for ESP32 too, so feel free to use that too. |
Hi ofekp, i tried the new PR and look like it worked with some conditions after a few hit and miss. Would you take a look at the error_log. It caused the esp32 processor reset a few times with error "Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled." It worked when i use Listen_port 17996 but no luck with port 80. |
Did you mean that no issue and no exception occurred when using port 17996, and that flakiness was only when using port 80, meaning port 80 sometimes was OK? Can you elaborate on this if I got it wrong? Can you check this for me:
This will tell us if the exception is from TinyUPnP or from ESP32 WebServer package. The decoded stack trace made no sense to me:
|
No, the flakiness happened on both port 17996 and 80 but port 17996 is able to mapped after multiple attempts, port 80 always failed. In both case, i noticed there are errors "Guru Meditation Error: Core 1 panic'ed (LoadProhibited). |
Can you try the branch again, I added a few logs that may help. |
Here's the available space: Sketch uses 779254 bytes (37%) of program storage space. Maximum is 2097152 bytes. |
Hey, sorry for the delay, this is quite hard to figure out, since it originates from the WiFiClient package which is not mine. Please make sure:
Now, please try the last branch (issue51_3) again. |
Hi ofekp, no problem. I just tried the last branch and made sure everything as you suggested but still no luck. Here's the log file. |
Can you do a Postman call please? Method:
URL:
Headers:
Body:
|
Good job there :) this is perfect.
|
Kind reminder, I hope all is well. |
Hi ofekp, Sorry for the late response. I hope you are doing well also. I just tried the new branch build but still experienced the crash issue when loading router information into esp32. As you can see from the log: |
Update for the esp8266: |
Sorry for my delay.
I think it is just a rule that remained on the router, they stay there for a while before being cleaned up, do you think this is what happened? I am unable to reconstruct this issue, even with port 80 and running for few hours. It seems to be an internal issue related to the ESP-32. Can you try to run the code on the second core? Refer to t this: https://techtutorialsx.com/2017/05/09/esp32-running-code-on-a-specific-core/
|
@rugal0123 Kind reminder :) |
Please refrain from posting comments containing the references to other issues on threads that are not related to your specific problem as it may confuse other readers, I am referring to the comment I deleted in issue 70. No worries, just try to avoid that please. What commit were you actually using? It is falling on this line Let's start from:
I am also noticing that you are trying a different port every time, is that correct? Maybe the issue is occurring only for specific set of ports? |
"String line = _wifiClient.readStringUntil('\r');" when running verifyPortMapping. |
So i read one of your closed issues "ESP32 support - crashs #38" and tried comment out UPNP_DEBUG. The result getting better. |
Oh, I am so glad to read that :) I might consider turning it off by default due to this. Thank you very much for letting me know. |
Yup. Now if you have any suggestion so that we can reduce the # of reset/crash to 0 it would be even better ! |
I will try to think of something, if you happen to be able to run on a different ESP32 or even ESP8266 please do so and let me know if this was reconstructed. |
Greeting,
i tried to use your libraries to test on my esp32 and somehow end up with this error. I've tried with 2 different router, 1 is my ASUS TM- AC 1900 and the other is my Samsung S7 Mobile HotSpot and Tethering. I've double checked on the require "filled_in" info and tried with different listen port, also tried to change the LEASE_DURATION. Please help i'm getting lost...
The text was updated successfully, but these errors were encountered: