-
Notifications
You must be signed in to change notification settings - Fork 15
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
Error in UPnP ver. 3.1.4 #75
Comments
Can you describe your home setup, is it just one router? |
Hi, thanks for replying, yes it is a single router and I did indeed check that UPnP was enabled. |
OK, this is not an XML format, but I assume this is a formatting issue (which I why I always request to attach as a file). |
I'm sorry, I have not attached the file because I was on my phone and I have not found the add file button and my mistake was to open it in the web browser, it opened in html plain text sorry. anyway anyway now I am on the PC and now I can attach the file. |
No worries :) Next up:
Please attach the files without zipping them, thank you. |
@KingCrimson138 kind reminder |
Testing WiFi connection for [192.168.0.19] ==> GOOD
Testing internet connection ==> GOOD
isGatewayInfoValid [(IP unset)] port [0] path [] actionPort [0] actionPath [] serviceTypeName []
Gateway info is not valid
Sending M-SEARCH to [239.255.255.250] Port [1900]
M-SEARCH sent
Received packet of size [314] ip [192.168.0.1] port [1900]
UDP packet read bytes [314] out of [314]
Gateway packet content:
HTTP/1.1 200 OK
Cache-Control: max-age=1900
Location: http://192.168.0.1:80/RootDevice.xml
Server: UPnP/1.0 UPnP/1.0 UPnP-Device-Host/1.0
ST:urn:schemas-upnp-org:device:InternetGatewayDevice:1
USN: uuid:upnp-InternetGatewayDevice-1_0-083e5d4e849c::urn:schemas-upnp-org:device:InternetGatewayDevice:1
EXT:
INTERNET_GATEWAY_DEVICE found
IGD location found [http://192.168.0.1:80/RootDevice.xml]
192.168.0.1
80
/RootDevice.xml
Connecting to IGD with host [192.168.0.1] port [80]
Connected to IGD
called getIGDEventURLs
deviceInfo->actionPath [] deviceInfo->path [/RootDevice.xml]
TCP connection timeout while executing getIGDEventURLs
called getIGDEventURLs
deviceInfo->actionPath [] deviceInfo->path [/RootDevice.xml]
TCP connection timeout while executing getIGDEventURLs
called getIGDEventURLs
deviceInfo->actionPath [] deviceInfo->path [/RootDevice.xml]
TCP connection timeout while executing getIGDEventURLs
Timeout expired while adding a new port mapping
ERROR: Invalid router info, cannot continue
isGatewayInfoValid [192.168.0.1] port [80] path [/RootDevice.xml] actionPort [80] actionPath [] serviceTypeName []
Gateway info is valid
I had already tested this library on an esp8266 to open the ports of a router. Now I am on another router (home like) and I get this error. I tried to delete a debugPrint(line); that a user had used but it didn't change. Thank you for your answer I am desperate for solutions :)
Line of code:
portMappingResult portMappingAdded;
//Setting router ports by UPnP
tinyUPnP.addPortMappingConfig(WiFi.localIP(), LISTEN_PORT, RULE_PROTOCOL_TCP, LEASE_DURATION, FRIENDLY_NAME);
while (portMappingAdded != SUCCESS && portMappingAdded != ALREADY_MAPPED) {
portMappingAdded = tinyUPnP.commitPortMappings();
Serial.println("");
}
Serial.println("Port forwarding done");
Consts:
#define LISTEN_PORT 2400
#define LEASE_DURATION 36000
#define FRIENDLY_NAME "HidroSrv"
The text was updated successfully, but these errors were encountered: