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

Optimizations #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Optimizations #19

wants to merge 1 commit into from

Conversation

Lan-Hekary
Copy link
Contributor

I noticed that the library uses a lot of Memory and I started optimizing it and I wanted to share these Optimizations with the others.
kindly check the commit and I am waiting for your comments.
thanks.

…Memory Usage.

-specify a Search Target in the M-SEARCH Packet to look for IGD only (Faster Gateway Response and Identification).
-remove Debug methods and replace them with Defines (reduce code usage) and enhance some of the debug calls.
-convert the times to unsigned long(breaks compatibility with -1 but user can use 0 instead).
-optimize getIGDEventURLs method
-enhance the Deconstructor (Still TODO).
-fix minor bugs and compiler warnings.
-fix a bug in getGatewayInfo, to use the passed gatewayInfo struct in all it's operation.
-fix a bug in verifyPortMapping, to use serviceTypeName from the current gateway info.
-fix a bug in printAllPortMappings, memory leak from del_prt->rule_ptr.
-fix a bug in upnpRuleToString, return a string.
@lucasromeiro
Copy link

Cool! I'm hoping to launch a new version to test !!! excellent improve memory usage !!!

@Lan-Hekary
Copy link
Contributor Author

Thanks 😃😃
There is still some bugs that needs to fixed of course but I need multiple people (with different routers) to test it.
Like if the port already exists for another IP the call fails (Happened to me because the DHCP assigned a Different IP to the ESP)
I am thinking of a Solution can we Delete the Port Mapping and Make another one if the old port mapping was for the esp only(Still working on it)

Also, Instead of just using the debugging methods, All the Methods must return an Enum for external Errors Handling by the user.
Now I am working on a branch to make use of the struct _upnpRule and _upnpRuleNode to store the Configuration and I am going to modify the calls to Verify and Request multiple Port Mappings from the IGD.
Tell me what do you want me to work on first 😃
I Have a bit for free time and I am enjoying myself with some programming 😃

@lucasromeiro
Copy link

Thanks 😃😃
There is still some bugs that needs to fixed of course but I need multiple people (with different routers) to test it.
Like if the port already exists for another IP the call fails (Happened to me because the DHCP assigned a Different IP to the ESP)
I am thinking of a Solution can we Delete the Port Mapping and Make another one if the old port mapping was for the esp only(Still working on it)

Also, Instead of just using the debugging methods, All the Methods must return an Enum for external Errors Handling by the user.
Now I am working on a branch to make use of the struct _upnpRule and _upnpRuleNode to store the Configuration and I am going to modify the calls to Verify and Request multiple Port Mappings from the IGD.
Tell me what do you want me to work on first 😃
I Have a bit for free time and I am enjoying myself with some programming 😃

Wow!! very good!
Many improvements!
Can you make these improvements for that date?
I can wait to test after you do.
I'm really looking forward to it !!!

@lucasromeiro
Copy link

if another ESP is using the same port, it is interesting that the function returns this information to the user to try another port. so the person's algorithm for automatically trying a different port: port + 1.

@Lan-Hekary
Copy link
Contributor Author

Yup .. It will check the Friendly Name against the Name returned from the router .. If it's the same but with a Different internal IP address .. It will issue a DeletePortMapping then Add again with the current Address ..

I'd like to ask you for a favor 😃 .
Before a making any new modification .. Can you test the Last Commit from my Fork on your router ..
Specially the M-SEARCH Packet and the response form the router ... It only searches for the IGD .. But there is a lot of different Network configurations that can make the search fail .. So if you have a network with multiple routers in it I'd like to test it ..

@lucasromeiro
Copy link

Hello! excelent idea!

I can test your final code. has it already been integrated into the main code? How can I download and test? instruct me what to do to test what you need! I can do. I have 2 routers here. I can get others. but I need you to instruct me how to test, if you have a test code it will make it easier.

Copy link
Owner

@ofekp ofekp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for doing this @Lan-Hekary!
Contributions like this is why I decided to make this package available to all. I am really moved by this.
Please consider my comments in the PR.

String ipAddressToString(IPAddress ipAddress);
String upnpRuleToString(upnpRule *rule_ptr);
String getSpacesString(int num);
IPAddress getHost(String url);
int getPort(String url);
String getPath(String url);
String getTagContent(String line, String tagName);
void debugPrint(String message);
void debugPrintln(String message);
//void debugPrint(String message);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you remove this entirely?

@@ -6,27 +6,29 @@
#include "Arduino.h"
#include "TinyUPnP.h"

#ifdef UPNP_DEBUG
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for that :)
Can you please use the original methods?
UPNP_DEBUG --> debugPrint
UPNP_DEBUGln --> debugPrintln

IPAddress ipMulti(239, 255, 255, 250); // multicast address for SSDP
IPAddress connectivityTestIp(64, 233, 187, 99); // Google
char packetBuffer[UDP_TX_PACKET_MAX_SIZE]; // buffer to hold incoming packet UDP_TX_PACKET_MAX_SIZE=8192
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will you agree to divide this PR into two:

  1. anything that has to do with the debug macro + things I commented as OK
  2. rest of the logic changes. Keep in mind that I am not sure I will allow the String usage, though. Moving from String to the arrays made my setup much more stable. And I intend to clean more String usages in the future.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Problem with NOT using Strings is that you either have to use Fixed Arrays or Dynamic Allocation.
Fixed Arrays like you did and that Consumes a lot of the data memory .. the size of the TinyUPnP Object now is 116 byte compared to about 10k before !!! that's a lot of wasted space for such a Tiny Library :D
the other alternative is to use dynamic allocation ..
and in that case the code will be more complex and you risk the possibility of memory leaks
the way I see it .. Strings are Great because of their Dynamic Nature and they never caused A problem with me before ..

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of the memory consumption was due to the compiled debug hard coded strings.
Let's start with that phase please so that you'll be convinced that it is true.
A 1000 byte array (UDP_TX_PACKET_MAX_SIZE) is better than using Strings which are in themselves dynamic allocation.
Anyway, please start with only the debug. This is a really good contribution. Let's consider the String after you'll see the memory consumption with just the debug as Macro.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I already tried that .. The Debugging Didn't add much to the Data Memory Consumption ..
It just adds to the PROGRAM .. And we have a lot of flash ..

I added the debug macro only to optimize the code and make it like the integrated libraries ..

(UDP_TX_PACKET_MAX_SIZE) was indeed 1000 byte ..
But the
(UDP_TX_PESPONSE_MAX_SIZE) was 8192
And the body_tmp[1200]
And int_string[32]

That used a lot of the Memory .. Converted it to static allocation and because of that .. The heap is too small to use TLS any more ..

I think you should move to the next phase already with optimizing for memory usage to allow for the TLS connections ..
Otherwise no one will use the library if they want to use TLS ..

Copy link
Owner

@ofekp ofekp Feb 9, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What package of TLS do you use so that I can experiment with it and find an optimum?

I can make a change that reduce the arrays size, already you can reduce the 1000 byte UDP_TX_PACKET_MAX_SIZE to be 50 if you want.

I strongly recommend that you read this:
https://miscsolutions.wordpress.com/2011/10/16/five-things-i-never-use-in-arduino-projects/

debugPrint(F("UDP_TX_PACKET_MAX_SIZE="));
debugPrintln(String(UDP_TX_PACKET_MAX_SIZE));
debugPrint(F("UDP_TX_RESPONSE_MAX_SIZE="));
debugPrintln(String(UDP_TX_RESPONSE_MAX_SIZE));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the first phase (debug only) please keep this.

_gwInfo.actionPort = 0;
_gwInfo.actionPath = "";
_gwInfo.serviceTypeName = "";
void TinyUPnP::clearGatewayInfo(gatewayInfo *deviceInfo) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -951,7 +934,7 @@ int TinyUPnP::getPort(String url) {
}

String TinyUPnP::getPath(String url) {
int port = -1;
//int port = -1;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove line please

boolean connectToIGD(IPAddress host, int port);
boolean getIGDEventURLs(gatewayInfo *deviceInfo);
boolean addPortMappingEntry(gatewayInfo *deviceInfo);
boolean printAllRules(gatewayInfo *deviceInfo);
boolean verifyPortMapping(gatewayInfo *deviceInfo);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

like 👍

boolean connectToIGD(IPAddress host, int port);
boolean getIGDEventURLs(gatewayInfo *deviceInfo);
boolean addPortMappingEntry(gatewayInfo *deviceInfo);
boolean printAllRules(gatewayInfo *deviceInfo);
boolean verifyPortMapping(gatewayInfo *deviceInfo);
boolean printAllRules(gatewayInfo *deviceInfo); // TODO
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

IPAddress ipToAddress(String ip);
char* ipAddressToCharArr(IPAddress ipAddress); // ?? not sure this is needed
//char* ipAddressToCharArr(IPAddress ipAddress); // ?? not sure this is needed
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, keep as comment for now
please change comment to
not used currently

@@ -110,7 +112,7 @@ class TinyUPnP
int _ruleLeaseDuration;
String _ruleFriendlyName;
unsigned long _lastUpdateTime;
int _timeoutMs; // -1 for blocking operation
unsigned long _timeoutMs; // 0 for blocking operation
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@lucasromeiro
Copy link

Hello guys! Good day!
Nice! This library is getting more robust!
Count on me to test!
Can I pass some test code, where I only put the login and password of the wifi to test?
I have some different brand routers here. I can test and say what happened!

@ofekp
Copy link
Owner

ofekp commented Feb 1, 2019

@Lan-Hekary

Like if the port already exists for another IP the call fails (Happened to me because the DHCP assigned a Different IP to the ESP)
I am thinking of a Solution can we Delete the Port Mapping and Make another one if the old port mapping was for the esp only(Still working on it)

Changing the port dynamically is beside the point, you will know what call to make in order to connect to your device. You'll need some interface to show the user what port was selected.

@ofekp
Copy link
Owner

ofekp commented Feb 1, 2019

@lucasromeiro
Do share your test result once you made them please.

@Lan-Hekary
Copy link
Contributor Author

Hello @ofekp,
thanks for your comments and I will try to make the changes ASAP,
but I made a lot of changes after I posted this PR .. all based of using Strings :(
now I have a whole different version that can Add Port Mappings for Multiple Rules ..

and I added the capability to DeletePortMapping and GetExternalIP also to remove the old port mapping if the ESP local IP changes ..

can you review this Branch?
https://github.com/Lan-Hekary/TinyUPnP/tree/maplist

@lucasromeiro
Copy link

@lucasromeiro
Do share your test result once you made them please.

Sure !! I want to help!
I have some routers here and I can test them !!
I'm a little busy to develop a test program. Do you have something ready that I can use to test?

@Lan-Hekary
Copy link
Contributor Author

@lucasromeiro
Do share your test result once you made them please.

Sure !! I want to help!
I have some routers here and I can test them !!
I'm a little busy to develop a test program. Do you have something ready that I can use to test?

@lucasromeiro You can use the SimpleServer Example from the Examples Folder to test
and open the router configuration page on the UPnP Port Mappings to see if the Port was addedd successfully or not ..

you can test the new Branch here:
https://github.com/Lan-Hekary/TinyUPnP/tree/maplist

Just clone it the library folder and begin your tests
also please don't forger to uncomment the
// #define UPNP_DEBUG
in the TinyUPnP.h file to allow for debug so that we can figure out the problems if there was any.

Thanks :)

@lucasromeiro
Copy link

@lucasromeiro
Do share your test result once you made them please.

Sure !! I want to help!
I have some routers here and I can test them !!
I'm a little busy to develop a test program. Do you have something ready that I can use to test?

@lucasromeiro You can use the SimpleServer Example from the Examples Folder to test
and open the router configuration page on the UPnP Port Mappings to see if the Port was addedd successfully or not ..

you can test the new Branch here:
https://github.com/Lan-Hekary/TinyUPnP/tree/maplist

Just clone it the library folder and begin your tests
also please don't forger to uncomment the
// #define UPNP_DEBUG
in the TinyUPnP.h file to allow for debug so that we can figure out the problems if there was any.

Thanks :)

Perfect! Thank you for your guidance!
I'll do the tests and return you

@lucasromeiro
Copy link

@lucasromeiro
Do share your test result once you made them please.

Sure !! I want to help!
I have some routers here and I can test them !!
I'm a little busy to develop a test program. Do you have something ready that I can use to test?

@lucasromeiro You can use the SimpleServer Example from the Examples Folder to test
and open the router configuration page on the UPnP Port Mappings to see if the Port was addedd successfully or not ..

you can test the new Branch here:
https://github.com/Lan-Hekary/TinyUPnP/tree/maplist

Just clone it the library folder and begin your tests
also please don't forger to uncomment the
// #define UPNP_DEBUG
in the TinyUPnP.h file to allow for debug so that we can figure out the problems if there was any.

Thanks :)

I was able to access through the internal network, but could not access through external network using external ip.
I also tested the site: https://www.yougetsignal.com/tools/open-ports/
Did not work.
On my router nothing appears in the upnp session. It's empty.

First results:

//---------------------------------------------------------------------------
Test 1 - Router 1
//---------------------------------------------------------------------------

connectWiFi
......................
Connected to VSE
IP address: 192.168.15.10
Testing WiFi connection for [192.168.15.10] ==> 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
Timeout expired while waiting for the gateway router to respond to M-SEARCH message
ERROR: Invalid router info, cannot continue

UPnP done

ets Jan 8 2013,rst cause:4, boot mode:(1,6)

wdt reset

//---------------------------------------------------------------------------
Test 2 - Router 1
//---------------------------------------------------------------------------

connectWiFi
.............
Connected to VSE
IP address: 192.168.15.10
Testing WiFi connection for [192.168.15.10] ==> 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 [295] ip [192.168.15.1] port [1900]
UDP packet read bytes [295]
Gateway packet content (many variations for debug):
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:device:InternetGatewayDevice:1
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:InternetGatewayDevice:1

INTERNET_GATEWAY_DEVICE found
IGD location found [http://192.168.15.1:5431/igdevicedesc.xml]
192.168.15.1
5431
/igdevicedesc.xml
Connecting to IGD with host [192.168.15.1] port [5431]
Connected to IGD
called getIGDEventURLs
deviceInfo->actionPath [] deviceInfo->path [/igdevicedesc.xml]
HTTP/1.1 501 Not Implemented
Connection: close
Content-type: text/html

<TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. called getIGDEventURLs deviceInfo->actionPath [] deviceInfo->path [/igdevicedesc.xml] TCP connection timeout while executing getIGDEventURLs called getIGDEventURLs deviceInfo->actionPath [] deviceInfo->path [/igdevicedesc.xml] TCP connection timeout while executing getIGDEventURLs called getIGDEventURLs deviceInfo->actionPath [] deviceInfo->path [/igdevicedesc.xml] TCP connection timeout while executing getIGDEventURLs Timeout expired while adding a new port mapping ERROR: Invalid router info, cannot continue

UPnP done
MDNS responder started
HTTP server started
Gateway Address: 192.168.15.1
Network Mask: 255.255.255.0

//---------------------------------------------------------------------------
Test 3 - Router 1
//---------------------------------------------------------------------------

Starting...
connectWiFi
..............
Connected to VSE
IP address: 192.168.15.10
Testing WiFi connection for [192.168.15.10] ==> 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
Timeout expired while waiting for the gateway router to respond to M-SEARCH message
ERROR: Invalid router info, cannot continue

UPnP done
MDNS responder started
HTTP server started
Gateway Address: 192.168.15.1
Network Mask: 255.255.255.0

//---------------------------------------------------------------------------
Test 4 - Router 1
//---------------------------------------------------------------------------

Connected to VSE
IP address: 192.168.15.10
Testing WiFi connection for [192.168.15.10] ==> 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 [266] ip [192.168.15.1] port [1900]
UDP packet read bytes [266]
Gateway packet content (many variations for debug):
packetBuffer:
NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: upnp:rootdevice
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::upnp:rootdevice
NTS: ssdp:alive

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [275] ip [192.168.15.1] port [1900]
UDP packet read bytes [275]
Gateway packet content (many variations for debug):
packetBuffer:
NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428
NTS: ssdp:alive

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [338] ip [192.168.15.1] port [1900]
UDP packet read bytes [338]
Gateway packet content (many variations for debug):
packetBuffer:
NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: urn:schemas-upnp-org:device:InternetGatewayDevice:1
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:InternetGatewayDevice:1
NTS: ssdp:alive

INTERNET_GATEWAY_DEVICE found
IGD location found [http://192.168.15.1:5431/igdevicedesc.xml]
192.168.15.1
5431
/igdevicedesc.xml
Connecting to IGD with host [192.168.15.1] port [5431]
Connected to IGD
called getIGDEventURLs
deviceInfo->actionPath [] deviceInfo->path [/igdevicedesc.xml]
HTTP/1.1 501 Not Implemented
Connection: close
Content-type: text/html

<TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Timeout expired while adding a new port mapping ERROR: Invalid router info, cannot continue

UPnP done
MDNS responder started
HTTP server started
Gateway Address: 192.168.15.1
Network Mask: 255.255.255.0

//---------------------------------------------------------------------------
Test 5 - Router 1
//---------------------------------------------------------------------------

Connected to VSE
IP address: 192.168.15.10
Testing WiFi connection for [192.168.15.10] ==> 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 [266] ip [192.168.15.1] port [1900]
UDP packet read bytes [266]
Gateway packet content (many variations for debug):
packetBuffer:
NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: upnp:rootdevice
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::upnp:rootdevice
NTS: ssdp:alive

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [275] ip [192.168.15.1] port [1900]
UDP packet read bytes [275]
Gateway packet content (many variations for debug):
packetBuffer:
NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428
NTS: ssdp:alive

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [338] ip [192.168.15.1] port [1900]
UDP packet read bytes [338]
Gateway packet content (many variations for debug):
packetBuffer:
NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: urn:schemas-upnp-org:device:InternetGatewayDevice:1
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:InternetGatewayDevice:1
NTS: ssdp:alive

INTERNET_GATEWAY_DEVICE found
IGD location found [http://192.168.15.1:5431/igdevicedesc.xml]
192.168.15.1
5431
/igdevicedesc.xml
Connecting to IGD with host [192.168.15.1] port [5431]
Connected to IGD
called getIGDEventURLs
deviceInfo->actionPath [] deviceInfo->path [/igdevicedesc.xml]
HTTP/1.1 501 Not Implemented
Connection: close
Content-type: text/html

<TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Timeout expired while adding a new port mapping ERROR: Invalid router info, cannot continue

UPnP done
MDNS responder started
HTTP server started
Gateway Address: 192.168.15.1
Network Mask: 255.255.255.0

//---------------------------------------------------------------------------
Test 6 - Router 1
//---------------------------------------------------------------------------

Connected to VSE
IP address: 192.168.15.10
Testing WiFi connection for [192.168.15.10] ==> 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
Timeout expired while waiting for the gateway router to respond to M-SEARCH message
ERROR: Invalid router info, cannot continue

UPnP done
MDNS responder started
HTTP server started
Gateway Address: 192.168.15.1
Network Mask: 255.255.255.0

//---------------------------------------------------------------------------
Test 7 - Router 1
//---------------------------------------------------------------------------

Connected to VSE
IP address: 192.168.15.10
Testing WiFi connection for [192.168.15.10] ==> 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
Timeout expired while waiting for the gateway router to respond to M-SEARCH message
ERROR: Invalid router info, cannot continue

UPnP done
MDNS responder started
HTTP server started
Gateway Address: 192.168.15.1
Network Mask: 255.255.255.0

//---------------------------------------------------------------------------
Test 8 - Router 1
//---------------------------------------------------------------------------

Connected to VSE
IP address: 192.168.15.10
Testing WiFi connection for [192.168.15.10] ==> 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 [266] ip [192.168.15.1] port [1900]
UDP packet read bytes [266]
Gateway packet content (many variations for debug):
packetBuffer:
NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: upnp:rootdevice
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::upnp:rootdevice
NTS: ssdp:alive

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [275] ip [192.168.15.1] port [1900]
UDP packet read bytes [275]
Gateway packet content (many variations for debug):
packetBuffer:
NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428
NTS: ssdp:alive

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [338] ip [192.168.15.1] port [1900]
UDP packet read bytes [338]
Gateway packet content (many variations for debug):
packetBuffer:
NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: urn:schemas-upnp-org:device:InternetGatewayDevice:1
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:InternetGatewayDevice:1
NTS: ssdp:alive

INTERNET_GATEWAY_DEVICE found
IGD location found [http://192.168.15.1:5431/igdevicedesc.xml]
192.168.15.1
5431
/igdevicedesc.xml
Connecting to IGD with host [192.168.15.1] port [5431]
Connected to IGD
called getIGDEventURLs
deviceInfo->actionPath [] deviceInfo->path [/igdevicedesc.xml]
HTTP/1.1 501 Not Implemented
Connection: close
Content-type: text/html

<TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Timeout expired while adding a new port mapping ERROR: Invalid router info, cannot continue

UPnP done
MDNS responder started
HTTP server started
Gateway Address: 192.168.15.1
Network Mask: 255.255.255.0

//---------------------------------------------------------------------------
Test 9 - Router 1
//---------------------------------------------------------------------------

Connected to VSE
IP address: 192.168.15.10
Testing WiFi connection for [192.168.15.10] ==> 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 [295] ip [192.168.15.1] port [1900]
UDP packet read bytes [295]
Gateway packet content (many variations for debug):
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:device:InternetGatewayDevice:1
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:InternetGatewayDevice:1

INTERNET_GATEWAY_DEVICE found
IGD location found [http://192.168.15.1:5431/igdevicedesc.xml]
192.168.15.1
5431
/igdevicedesc.xml
Connecting to IGD with host [192.168.15.1] port [5431]
Connected to IGD
called getIGDEventURLs
deviceInfo->actionPath [] deviceInfo->path [/igdevicedesc.xml]
HTTP/1.1 501 Not Implemented
Connection: close
Content-type: text/html

<TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. called getIGDEventURLs deviceInfo->actionPath [] deviceInfo->path [/igdevicedesc.xml] TCP connection timeout while executing getIGDEventURLs called getIGDEventURLs deviceInfo->actionPath [] deviceInfo->path [/igdevicedesc.xml] TCP connection timeout while executing getIGDEventURLs called getIGDEventURLs deviceInfo->actionPath [] deviceInfo->path [/igdevicedesc.xml] TCP connection timeout while executing getIGDEventURLs Timeout expired while adding a new port mapping ERROR: Invalid router info, cannot continue

UPnP done
MDNS responder started
HTTP server started
Gateway Address: 192.168.15.1
Network Mask: 255.255.255.0

@Lan-Hekary
Copy link
Contributor Author

@lucasromeiro
thanks for the Tests ..
can you try to get call this URL from your browser and see if you get a response .. or 501 ??
http://192.168.15.1:5431/igdevicedesc.xml

try the library version at :
https://github.com/ofekp/TinyUPnP
does it give you the same result ??

I think the problem is that the router somehow does not support the GET Method on the Location ..

@lucasromeiro
Copy link

lucasromeiro commented Feb 1, 2019

@lucasromeiro
thanks for the Tests ..
can you try to get call this URL from your browser and see if you get a response .. or 501 ??
http://192.168.15.1:5431/igdevicedesc.xml

try the library version at :
https://github.com/ofekp/TinyUPnP
does it give you the same result ??

I think the problem is that the router somehow does not support the GET Method on the Location ..

I'll test the other version!
The result of http://192.168.15.1:5431/igdevicedesc.xml was:

This XML file does not appear to have any style information associated with it. The document tree is shown below.


1
0

http://192.168.15.1:5431


urn:schemas-upnp-org:device:InternetGatewayDevice:1

http://192.168.15.1:80/
RTV9015VW
ASKEY
http://www.realtek.com
ADSL SoHo Router
RTV9015VW
8671x
http://www.realtek.com
uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428
RTV9015VW


urn:schemas-upnp-org:service:Layer3Forwarding:1
urn:upnp-org:serviceId:Layer3Forwarding1
/control/Layer3Forwarding
/event/Layer3Forwarding
/upnp/layer3forwardingSCPD.xml




urn:schemas-upnp-org:device:WANDevice:1
WANDevice
ASKEY
http://www.realtek.com
ADSL SoHo Router
ASKEY
1
http://www.realtek.com
uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428
RTV9015VW



urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1

urn:upnp-org:serviceId:wancommoninterfaceconfig1
/control/WANCommonInterfaceConfig
/event/WANCommonInterfaceConfig
/upnp/WAN/wancommoninterfaceconfigSCPD.xml




urn:schemas-upnp-org:device:WANConnectionDevice:1
WANConnectionDevice
ASKEY
http://www.realtek.com
ADSL SoHo Router
RTV9015VW
1
http://www.realtek.com
uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428
RTV9015VW


urn:schemas-upnp-org:service:WANIPConnection:1
urn:upnp-org:serviceId:wanipconnection1
/control/WANIPConnection
/event/WANIPConnection
/upnp/WAN/wanipconnectionSCPD.xml


urn:schemas-upnp-org:service:WANCableLinkConfig:1
urn:upnp-org:serviceId:WANCableLinkConfig1
/control/WANCableLinkConfig

/upnp/WAN/wancablelinkconfigSCPD.xml



urn:schemas-upnp-org:service:WANEthernetLinkConfig:1

urn:upnp-org:serviceId:wanetherlinkconfig1
/control/WANEthernetLinkConfig
/event/WANEthernetLinkConfig
/upnp/WAN/wanethernetlinkconfigSCPD.xml







@lucasromeiro
Copy link

captura de tela 2019-02-01 as 11 55 39

@Lan-Hekary
Copy link
Contributor Author

yup .. this data is valid ..
but I and wondering why the router response is 501 unimplemented to a Simple GET Method ??

@lucasromeiro
Copy link

using https://github.com/ofekp/TinyUPnP:

//---------------------------------------------------------------------------
Test 1 - Router 1
//---------------------------------------------------------------------------

........
Connected to VSE
IP address: 192.168.15.10
Testing WiFi connection for [192.168.15.10] ==> GOOD
Testing internet connection ==> GOOD
isGatewayInfoValid [0.0.0.0] 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 [221] ip [192.168.15.1] port [1900]
UDP packet read bytes [221] out of [221]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
EXT:
LOCATION: http://192.168.15.1:58231/simplecfg.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: upnp:rootdevice
USN: uuid:63041253-1019-2006-1228-542f8a37f428::upnp:rootdevice

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
EXT:
LOCATION: http://192.168.15.1:58231/simplecfg.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: upnp:rootdevice
USN: uuid:63041253-1019-2006-1228-542f8a37f428::upnp:rootdevice

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [293] ip [192.168.15.1] port [1900]
UDP packet read bytes [293] out of [293]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:device:InternetGatewayDevice:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:InternetGatewayDevice:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:device:InternetGatewayDevice:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:InternetGatewayDevice:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [285] ip [192.168.15.1] port [1900]
UDP packet read bytes [285] out of [285]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:Layer3Forwarding:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:Layer3Forwarding:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:Layer3Forwarding:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:Layer3Forwarding:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [269] ip [192.168.15.1] port [1900]
UDP packet read bytes [269] out of [269]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:device:WANDevice:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:WANDevice:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:device:WANDevice:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:WANDevice:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [301] ip [192.168.15.1] port [1900]
UDP packet read bytes [301] out of [301]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANCommonInterfaceConfig:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANCommonInterfaceConfig:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANCommonInterfaceConfig:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANCommonInterfaceConfig:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [289] ip [192.168.15.1] port [1900]
UDP packet read bytes [289] out of [289]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:device:WANConnectionDevice:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:WANConnectionDevice:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:device:WANConnectionDevice:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:WANConnectionDevice:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [295] ip [192.168.15.1] port [1900]
UDP packet read bytes [295] out of [295]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANEthernetLinkConfig:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANEthernetLinkConfig:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANEthernetLinkConfig:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANEthernetLinkConfig:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [283] ip [192.168.15.1] port [1900]
UDP packet read bytes [283] out of [283]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANIPConnection:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANIPConnection:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANIPConnection:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANIPConnection:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [289] ip [192.168.15.1] port [1900]
UDP packet read bytes [289] out of [289]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANCableLinkConfig:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANCableLinkConfig:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANCableLinkConfig:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANCableLinkConfig:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [283] ip [192.168.15.1] port [1900]
UDP packet read bytes [283] out of [283]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
EXT:
LOCATION: http://192.168.15.1:58231/simplecfg.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-wifialliance-org:device:WFADevice:
USN: uuid:63041253-1019-2006-1228-542f8a37f428::urn:schemas-wifialliance-org:device:WFADevice:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
EXT:
LOCATION: http://192.168.15.1:58231/simplecfg.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-wifialliance-org:device:WFADevice:
USN: uuid:63041253-1019-2006-1228-542f8a37f428::urn:schemas-wifialliance-org:device:WFADevice:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [293] ip [192.168.15.1] port [1900]
UDP packet read bytes [293] out of [293]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
EXT:
LOCATION: http://192.168.15.1:58231/simplecfg.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-wifialliance-org:service:WFAWLANConfig:
USN: uuid:63041253-1019-2006-1228-542f8a37f428::urn:schemas-wifialliance-org:service:WFAWLANConfig:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
EXT:
LOCATION: http://192.168.15.1:58231/simplecfg.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-wifialliance-org:service:WFAWLANConfig:
USN: uuid:63041253-1019-2006-1228-542f8a37f428::urn:schemas-wifialliance-org:service:WFAWLANConfig:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [266] ip [192.168.15.1] port [1900]
UDP packet read bytes [266] out of [266]
Gateway packet content (many variations for debug):
char at 0
N
char at 1
O
packetBuffer:
NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: upnp:rootdevice
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::upnp:rootdevice
NTS: ssdp:alive

NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: upnp:rootdevice
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::upnp:rootdevice
NTS: ssdp:alive

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [275] ip [192.168.15.1] port [1900]
UDP packet read bytes [275] out of [275]
Gateway packet content (many variations for debug):
char at 0
N
char at 1
O
packetBuffer:
NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428
NTS: ssdp:alive

NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428
NTS: ssdp:alive

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [338] ip [192.168.15.1] port [1900]
UDP packet read bytes [338] out of [338]
Gateway packet content (many variations for debug):
char at 0
N
char at 1
O
packetBuffer:
NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: urn:schemas-upnp-org:device:InternetGatewayDevice:1
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:InternetGatewayDevice:1
NTS: ssdp:alive

NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: urn:schemas-upnp-org:device:InternetGatewayDevice:1
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:InternetGatewayDevice:1
NTS: ssdp:alive

INTERNET_GATEWAY_DEVICE found
IGD location found [http://192.168.15.1:5431/igdevicedesc.xml]
192.168.15.1
5431
/igdevicedesc.xml
Connecting to IGD with host [192.168.15.1] port [5431]
Connected to IGD
called getIGDEventURLs
deviceInfo->actionPath [] deviceInfo->path [/igdevicedesc.xml]
HTTP/1.1 501 Not Implemented
Connection: close
Content-type: text/html

<TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. called getIGDEventURLs deviceInfo->actionPath [] deviceInfo->path [/igdevicedesc.xml] TCP connection timeout while executing getIGDEventURLs Timeout expired while adding a new port mapping isGatewayInfoValid [192.168.15.1] port [5431] path [/igdevicedesc.xml] actionPort [5431] actionPath [] serviceTypeName [] port [5431] actionPort [5431] Verifying rule in IGD Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD 4013 TCP

HTTP/1.1 501 Not Implemented
Connection: close
Content-type: text/html

<TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server.

Could not find port mapping in IGD
called addPortMappingEntry
Connecting to IGD with host [192.168.15.1] port [5431]
Connected to IGD
deviceInfo->actionPath []
deviceInfo->serviceTypeName []
Content-Length was: 549

4013TCP4013192.168.15.10136000

HTTP/1.1 501 Not Implemented

Connection: close

Content-type: text/html

<TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server.

Timeout expired while trying to add the port mapping

Port Mappings:
Connecting to IGD with host [192.168.15.1] port [5431]
Connected to IGD
Sending query for index [0]
HTTP/1.1 501 Not Implemented
Connection: close
Content-type: text/html

<TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD Sending query for index [1] HTTP/1.1 501 Not Implemented Connection: close Content-type: text/html <TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD Sending query for index [2] HTTP/1.1 501 Not Implemented Connection: close Content-type: text/html <TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD Sending query for index [3] HTTP/1.1 501 Not Implemented Connection: close Content-type: text/html <TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD Sending query for index [4] HTTP/1.1 501 Not Implemented Connection: close Content-type: text/html <TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD Sending query for index [5] HTTP/1.1 501 Not Implemented Connection: close Content-type: text/html <TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD Sending query for index [6] HTTP/1.1 501 Not Implemented Connection: close Content-type: text/html <TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD Sending query for index [7] HTTP/1.1 501 Not Implemented Connection: close Content-type: text/html <TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD Sending query for index [8] HTTP/1.1 501 Not Implemented Connection: close Content-type: text/html <TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD Sending query for index [9] HTTP/1.1 501 Not Implemented Connection: close Content-type: text/html <TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server.

//---------------------------------------------------------------------------
Test 2 - Router 1
//---------------------------------------------------------------------------

.......................
Connected to VSE
IP address: 192.168.15.10
Testing WiFi connection for [192.168.15.10] ==> GOOD
Testing internet connection ==> GOOD
isGatewayInfoValid [0.0.0.0] 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 [221] ip [192.168.15.1] port [1900]
UDP packet read bytes [221] out of [221]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
EXT:
LOCATION: http://192.168.15.1:58231/simplecfg.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: upnp:rootdevice
USN: uuid:63041253-1019-2006-1228-542f8a37f428::upnp:rootdevice

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
EXT:
LOCATION: http://192.168.15.1:58231/simplecfg.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: upnp:rootdevice
USN: uuid:63041253-1019-2006-1228-542f8a37f428::upnp:rootdevice

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [223] ip [192.168.15.1] port [1900]
UDP packet read bytes [223] out of [223]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: upnp:rootdevice
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::upnp:rootdevice

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: upnp:rootdevice
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::upnp:rootdevice

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [293] ip [192.168.15.1] port [1900]
UDP packet read bytes [293] out of [293]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:device:InternetGatewayDevice:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:InternetGatewayDevice:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:device:InternetGatewayDevice:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:InternetGatewayDevice:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [285] ip [192.168.15.1] port [1900]
UDP packet read bytes [285] out of [285]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:Layer3Forwarding:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:Layer3Forwarding:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:Layer3Forwarding:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:Layer3Forwarding:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [269] ip [192.168.15.1] port [1900]
UDP packet read bytes [269] out of [269]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:device:WANDevice:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:WANDevice:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:device:WANDevice:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:WANDevice:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [301] ip [192.168.15.1] port [1900]
UDP packet read bytes [301] out of [301]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANCommonInterfaceConfig:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANCommonInterfaceConfig:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANCommonInterfaceConfig:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANCommonInterfaceConfig:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [289] ip [192.168.15.1] port [1900]
UDP packet read bytes [289] out of [289]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:device:WANConnectionDevice:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:WANConnectionDevice:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:device:WANConnectionDevice:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:WANConnectionDevice:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [295] ip [192.168.15.1] port [1900]
UDP packet read bytes [295] out of [295]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANEthernetLinkConfig:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANEthernetLinkConfig:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANEthernetLinkConfig:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANEthernetLinkConfig:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [283] ip [192.168.15.1] port [1900]
UDP packet read bytes [283] out of [283]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
EXT:
LOCATION: http://192.168.15.1:58231/simplecfg.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-wifialliance-org:device:WFADevice:
USN: uuid:63041253-1019-2006-1228-542f8a37f428::urn:schemas-wifialliance-org:device:WFADevice:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
EXT:
LOCATION: http://192.168.15.1:58231/simplecfg.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-wifialliance-org:device:WFADevice:
USN: uuid:63041253-1019-2006-1228-542f8a37f428::urn:schemas-wifialliance-org:device:WFADevice:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [283] ip [192.168.15.1] port [1900]
UDP packet read bytes [283] out of [283]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANIPConnection:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANIPConnection:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANIPConnection:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANIPConnection:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [289] ip [192.168.15.1] port [1900]
UDP packet read bytes [289] out of [289]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANCableLinkConfig:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANCableLinkConfig:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANCableLinkConfig:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANCableLinkConfig:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [293] ip [192.168.15.1] port [1900]
UDP packet read bytes [293] out of [293]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
EXT:
LOCATION: http://192.168.15.1:58231/simplecfg.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-wifialliance-org:service:WFAWLANConfig:
USN: uuid:63041253-1019-2006-1228-542f8a37f428::urn:schemas-wifialliance-org:service:WFAWLANConfig:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
EXT:
LOCATION: http://192.168.15.1:58231/simplecfg.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-wifialliance-org:service:WFAWLANConfig:
USN: uuid:63041253-1019-2006-1228-542f8a37f428::urn:schemas-wifialliance-org:service:WFAWLANConfig:

INTERNET_GATEWAY_DEVICE was not found
Timeout expired while waiting for the gateway router to respond to M-SEARCH message
isGatewayInfoValid [0.0.0.0] port [0] path [] actionPort [0] actionPath [] serviceTypeName []
Gateway info is not valid
ERROR: Invalid router info, cannot continue

Port Mappings:
Invalid router info, cannot continue
This was printed because adding the required port mapping failed
Testing WiFi connection for [192.168.15.10] ==> GOOD
Testing internet connection ==> GOOD
isGatewayInfoValid [0.0.0.0] 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 [223] ip [192.168.15.1] port [1900]
UDP packet read bytes [223] out of [223]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: upnp:rootdevice
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::upnp:rootdevice

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: upnp:rootdevice
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::upnp:rootdevice

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [293] ip [192.168.15.1] port [1900]
UDP packet read bytes [293] out of [293]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:device:InternetGatewayDevice:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:InternetGatewayDevice:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:device:InternetGatewayDevice:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:InternetGatewayDevice:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [285] ip [192.168.15.1] port [1900]
UDP packet read bytes [285] out of [285]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:Layer3Forwarding:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:Layer3Forwarding:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:Layer3Forwarding:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:Layer3Forwarding:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [269] ip [192.168.15.1] port [1900]
UDP packet read bytes [269] out of [269]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:device:WANDevice:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:WANDevice:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:device:WANDevice:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:WANDevice:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [301] ip [192.168.15.1] port [1900]
UDP packet read bytes [301] out of [301]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANCommonInterfaceConfig:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANCommonInterfaceConfig:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANCommonInterfaceConfig:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANCommonInterfaceConfig:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [289] ip [192.168.15.1] port [1900]
UDP packet read bytes [289] out of [289]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:device:WANConnectionDevice:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:WANConnectionDevice:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:device:WANConnectionDevice:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:WANConnectionDevice:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [283] ip [192.168.15.1] port [1900]
UDP packet read bytes [283] out of [283]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANIPConnection:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANIPConnection:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANIPConnection:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANIPConnection:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [289] ip [192.168.15.1] port [1900]
UDP packet read bytes [289] out of [289]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANCableLinkConfig:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANCableLinkConfig:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANCableLinkConfig:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANCableLinkConfig:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [221] ip [192.168.15.1] port [1900]
UDP packet read bytes [221] out of [221]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
EXT:
LOCATION: http://192.168.15.1:58231/simplecfg.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: upnp:rootdevice
USN: uuid:63041253-1019-2006-1228-542f8a37f428::upnp:rootdevice

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
EXT:
LOCATION: http://192.168.15.1:58231/simplecfg.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: upnp:rootdevice
USN: uuid:63041253-1019-2006-1228-542f8a37f428::upnp:rootdevice

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [283] ip [192.168.15.1] port [1900]
UDP packet read bytes [283] out of [283]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
EXT:
LOCATION: http://192.168.15.1:58231/simplecfg.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-wifialliance-org:device:WFADevice:
USN: uuid:63041253-1019-2006-1228-542f8a37f428::urn:schemas-wifialliance-org:device:WFADevice:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
EXT:
LOCATION: http://192.168.15.1:58231/simplecfg.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-wifialliance-org:device:WFADevice:
USN: uuid:63041253-1019-2006-1228-542f8a37f428::urn:schemas-wifialliance-org:device:WFADevice:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [293] ip [192.168.15.1] port [1900]
UDP packet read bytes [293] out of [293]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
EXT:
LOCATION: http://192.168.15.1:58231/simplecfg.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-wifialliance-org:service:WFAWLANConfig:
USN: uuid:63041253-1019-2006-1228-542f8a37f428::urn:schemas-wifialliance-org:service:WFAWLANConfig:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
EXT:
LOCATION: http://192.168.15.1:58231/simplecfg.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-wifialliance-org:service:WFAWLANConfig:
USN: uuid:63041253-1019-2006-1228-542f8a37f428::urn:schemas-wifialliance-org:service:WFAWLANConfig:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [266] ip [192.168.15.1] port [1900]
UDP packet read bytes [266] out of [266]
Gateway packet content (many variations for debug):
char at 0
N
char at 1
O
packetBuffer:
NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: upnp:rootdevice
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::upnp:rootdevice
NTS: ssdp:alive

NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: upnp:rootdevice
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::upnp:rootdevice
NTS: ssdp:alive

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [275] ip [192.168.15.1] port [1900]
UDP packet read bytes [275] out of [275]
Gateway packet content (many variations for debug):
char at 0
N
char at 1
O
packetBuffer:
NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428
NTS: ssdp:alive

NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428
NTS: ssdp:alive

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [338] ip [192.168.15.1] port [1900]
UDP packet read bytes [338] out of [338]
Gateway packet content (many variations for debug):
char at 0
N
char at 1
O
packetBuffer:
NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: urn:schemas-upnp-org:device:InternetGatewayDevice:1
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:InternetGatewayDevice:1
NTS: ssdp:alive

NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: urn:schemas-upnp-org:device:InternetGatewayDevice:1
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:InternetGatewayDevice:1
NTS: ssdp:alive

INTERNET_GATEWAY_DEVICE found
IGD location found [http://192.168.15.1:5431/igdevicedesc.xml]
192.168.15.1
5431
/igdevicedesc.xml
Connecting to IGD with host [192.168.15.1] port [5431]
Connected to IGD
called getIGDEventURLs
deviceInfo->actionPath [] deviceInfo->path [/igdevicedesc.xml]
HTTP/1.1 501 Not Implemented
Connection: close
Content-type: text/html

<TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. called getIGDEventURLs deviceInfo->actionPath [] deviceInfo->path [/igdevicedesc.xml] TCP connection timeout while executing getIGDEventURLs called getIGDEventURLs deviceInfo->actionPath [] deviceInfo->path [/igdevicedesc.xml] TCP connection timeout while executing getIGDEventURLs Timeout expired while adding a new port mapping isGatewayInfoValid [192.168.15.1] port [5431] path [/igdevicedesc.xml] actionPort [5431] actionPath [] serviceTypeName [] port [5431] actionPort [5431] Verifying rule in IGD Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD 4013 TCP

HTTP/1.1 501 Not Implemented
Connection: close
Content-type: text/html

<TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server.

Could not find port mapping in IGD
called addPortMappingEntry
Connecting to IGD with host [192.168.15.1] port [5431]
Connected to IGD
deviceInfo->actionPath []
deviceInfo->serviceTypeName []
Content-Length was: 549

4013TCP4013192.168.15.10136000

HTTP/1.1 501 Not Implemented

Connection: close

Content-type: text/html

<TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server.

Timeout expired while trying to add the port mapping

Port Mappings:
Connecting to IGD with host [192.168.15.1] port [5431]
Connected to IGD
Sending query for index [0]
HTTP/1.1 501 Not Implemented
Connection: close
Content-type: text/html

<TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD Sending query for index [1] HTTP/1.1 501 Not Implemented Connection: close Content-type: text/html <TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD Sending query for index [2] HTTP/1.1 501 Not Implemented Connection: close Content-type: text/html <TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server.

//---------------------------------------------------------------------------
Test 3 - Router 1
//---------------------------------------------------------------------------

connectWiFi
......................
Connected to VSE
IP address: 192.168.15.10
Testing WiFi connection for [192.168.15.10] ==> GOOD
Testing internet connection ==> GOOD
isGatewayInfoValid [0.0.0.0] 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 [293] ip [192.168.15.1] port [1900]
UDP packet read bytes [293] out of [293]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:device:InternetGatewayDevice:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:InternetGatewayDevice:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:device:InternetGatewayDevice:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:InternetGatewayDevice:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [285] ip [192.168.15.1] port [1900]
UDP packet read bytes [285] out of [285]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:Layer3Forwarding:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:Layer3Forwarding:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:Layer3Forwarding:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:Layer3Forwarding:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [269] ip [192.168.15.1] port [1900]
UDP packet read bytes [269] out of [269]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:device:WANDevice:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:WANDevice:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:device:WANDevice:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:WANDevice:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [301] ip [192.168.15.1] port [1900]
UDP packet read bytes [301] out of [301]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANCommonInterfaceConfig:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANCommonInterfaceConfig:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANCommonInterfaceConfig:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANCommonInterfaceConfig:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [289] ip [192.168.15.1] port [1900]
UDP packet read bytes [289] out of [289]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:device:WANConnectionDevice:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:WANConnectionDevice:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:device:WANConnectionDevice:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:WANConnectionDevice:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [295] ip [192.168.15.1] port [1900]
UDP packet read bytes [295] out of [295]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANEthernetLinkConfig:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANEthernetLinkConfig:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANEthernetLinkConfig:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANEthernetLinkConfig:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [283] ip [192.168.15.1] port [1900]
UDP packet read bytes [283] out of [283]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANIPConnection:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANIPConnection:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANIPConnection:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANIPConnection:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [283] ip [192.168.15.1] port [1900]
UDP packet read bytes [283] out of [283]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
EXT:
LOCATION: http://192.168.15.1:58231/simplecfg.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-wifialliance-org:device:WFADevice:
USN: uuid:63041253-1019-2006-1228-542f8a37f428::urn:schemas-wifialliance-org:device:WFADevice:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
EXT:
LOCATION: http://192.168.15.1:58231/simplecfg.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-wifialliance-org:device:WFADevice:
USN: uuid:63041253-1019-2006-1228-542f8a37f428::urn:schemas-wifialliance-org:device:WFADevice:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [293] ip [192.168.15.1] port [1900]
UDP packet read bytes [293] out of [293]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
EXT:
LOCATION: http://192.168.15.1:58231/simplecfg.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-wifialliance-org:service:WFAWLANConfig:
USN: uuid:63041253-1019-2006-1228-542f8a37f428::urn:schemas-wifialliance-org:service:WFAWLANConfig:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
EXT:
LOCATION: http://192.168.15.1:58231/simplecfg.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-wifialliance-org:service:WFAWLANConfig:
USN: uuid:63041253-1019-2006-1228-542f8a37f428::urn:schemas-wifialliance-org:service:WFAWLANConfig:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [266] ip [192.168.15.1] port [1900]
UDP packet read bytes [266] out of [266]
Gateway packet content (many variations for debug):
char at 0
N
char at 1
O
packetBuffer:
NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: upnp:rootdevice
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::upnp:rootdevice
NTS: ssdp:alive

NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: upnp:rootdevice
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::upnp:rootdevice
NTS: ssdp:alive

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [275] ip [192.168.15.1] port [1900]
UDP packet read bytes [275] out of [275]
Gateway packet content (many variations for debug):
char at 0
N
char at 1
O
packetBuffer:
NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428
NTS: ssdp:alive

NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428
NTS: ssdp:alive

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [338] ip [192.168.15.1] port [1900]
UDP packet read bytes [338] out of [338]
Gateway packet content (many variations for debug):
char at 0
N
char at 1
O
packetBuffer:
NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: urn:schemas-upnp-org:device:InternetGatewayDevice:1
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:InternetGatewayDevice:1
NTS: ssdp:alive

NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: urn:schemas-upnp-org:device:InternetGatewayDevice:1
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:InternetGatewayDevice:1
NTS: ssdp:alive

INTERNET_GATEWAY_DEVICE found
IGD location found [http://192.168.15.1:5431/igdevicedesc.xml]
192.168.15.1
5431
/igdevicedesc.xml
Connecting to IGD with host [192.168.15.1] port [5431]
Connected to IGD
called getIGDEventURLs
deviceInfo->actionPath [] deviceInfo->path [/igdevicedesc.xml]
HTTP/1.1 501 Not Implemented
Connection: close
Content-type: text/html

<TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. called getIGDEventURLs deviceInfo->actionPath [] deviceInfo->path [/igdevicedesc.xml] TCP connection timeout while executing getIGDEventURLs Timeout expired while adding a new port mapping isGatewayInfoValid [192.168.15.1] port [5431] path [/igdevicedesc.xml] actionPort [5431] actionPath [] serviceTypeName [] port [5431] actionPort [5431] Verifying rule in IGD Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD 4018 TCP

HTTP/1.1 501 Not Implemented
Connection: close
Content-type: text/html

<TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server.

Could not find port mapping in IGD
called addPortMappingEntry
Connecting to IGD with host [192.168.15.1] port [5431]
Connected to IGD
deviceInfo->actionPath []
deviceInfo->serviceTypeName []
Content-Length was: 546

4018TCP4018192.168.15.101MiniDrome36000

HTTP/1.1 501 Not Implemented

Connection: close

Content-type: text/html

<TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server.

Timeout expired while trying to add the port mapping

Port Mappings:
Connecting to IGD with host [192.168.15.1] port [5431]
Connected to IGD
Sending query for index [0]
HTTP/1.1 501 Not Implemented
Connection: close
Content-type: text/html

<TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD Sending query for index [1] HTTP/1.1 501 Not Implemented Connection: close Content-type: text/html <TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD Sending query for index [2] HTTP/1.1 501 Not Implemented Connection: close Content-type: text/html <TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD Sending query for index [3] HTTP/1.1 501 Not Implemented Connection: close Content-type: text/html <TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD Sending query for index [4] HTTP/1.1 501 Not Implemented Connection: close Content-type: text/html <TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD Sending query for index [5] HTTP/1.1 501 Not Implemented Connection: close Content-type: text/html <TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD Sending query for index [6] HTTP/1.1 501 Not Implemented Connection: close Content-type: text/html <TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server.

@Lan-Hekary
Copy link
Contributor Author

Lan-Hekary commented Feb 1, 2019 via email

@lucasromeiro
Copy link

Log router:
captura de tela 2019-02-01 as 13 02 11

Debug:

Connected to VSE
IP address: 192.168.15.10
Testing WiFi connection for [192.168.15.10] ==> GOOD
Testing internet connection ==> GOOD
isGatewayInfoValid [0.0.0.0] 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 [293] ip [192.168.15.1] port [1900]
UDP packet read bytes [293] out of [293]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:device:InternetGatewayDevice:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:InternetGatewayDevice:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:device:InternetGatewayDevice:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:InternetGatewayDevice:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [285] ip [192.168.15.1] port [1900]
UDP packet read bytes [285] out of [285]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:Layer3Forwarding:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:Layer3Forwarding:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:Layer3Forwarding:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:Layer3Forwarding:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [269] ip [192.168.15.1] port [1900]
UDP packet read bytes [269] out of [269]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:device:WANDevice:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:WANDevice:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:device:WANDevice:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:WANDevice:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [301] ip [192.168.15.1] port [1900]
UDP packet read bytes [301] out of [301]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANCommonInterfaceConfig:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANCommonInterfaceConfig:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANCommonInterfaceConfig:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANCommonInterfaceConfig:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [289] ip [192.168.15.1] port [1900]
UDP packet read bytes [289] out of [289]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:device:WANConnectionDevice:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:WANConnectionDevice:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:device:WANConnectionDevice:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:WANConnectionDevice:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [295] ip [192.168.15.1] port [1900]
UDP packet read bytes [295] out of [295]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANEthernetLinkConfig:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANEthernetLinkConfig:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANEthernetLinkConfig:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANEthernetLinkConfig:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [283] ip [192.168.15.1] port [1900]
UDP packet read bytes [283] out of [283]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANIPConnection:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANIPConnection:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANIPConnection:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANIPConnection:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [289] ip [192.168.15.1] port [1900]
UDP packet read bytes [289] out of [289]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANCableLinkConfig:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANCableLinkConfig:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=3000
EXT:
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-upnp-org:service:WANCableLinkConfig:
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:service:WANCableLinkConfig:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [283] ip [192.168.15.1] port [1900]
UDP packet read bytes [283] out of [283]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
EXT:
LOCATION: http://192.168.15.1:58231/simplecfg.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-wifialliance-org:device:WFADevice:
USN: uuid:63041253-1019-2006-1228-542f8a37f428::urn:schemas-wifialliance-org:device:WFADevice:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
EXT:
LOCATION: http://192.168.15.1:58231/simplecfg.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-wifialliance-org:device:WFADevice:
USN: uuid:63041253-1019-2006-1228-542f8a37f428::urn:schemas-wifialliance-org:device:WFADevice:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [293] ip [192.168.15.1] port [1900]
UDP packet read bytes [293] out of [293]
Gateway packet content (many variations for debug):
char at 0
H
char at 1
T
packetBuffer:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
EXT:
LOCATION: http://192.168.15.1:58231/simplecfg.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-wifialliance-org:service:WFAWLANConfig:
USN: uuid:63041253-1019-2006-1228-542f8a37f428::urn:schemas-wifialliance-org:service:WFAWLANConfig:

HTTP/1.1 200 OK
CACHE-CONTROL: max-age=1800
EXT:
LOCATION: http://192.168.15.1:58231/simplecfg.xml
SERVER:UPnP/1.0 BLR-TX4S/1.0
ST: urn:schemas-wifialliance-org:service:WFAWLANConfig:
USN: uuid:63041253-1019-2006-1228-542f8a37f428::urn:schemas-wifialliance-org:service:WFAWLANConfig:

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [266] ip [192.168.15.1] port [1900]
UDP packet read bytes [266] out of [266]
Gateway packet content (many variations for debug):
char at 0
N
char at 1
O
packetBuffer:
NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: upnp:rootdevice
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::upnp:rootdevice
NTS: ssdp:alive

NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: upnp:rootdevice
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::upnp:rootdevice
NTS: ssdp:alive

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [275] ip [192.168.15.1] port [1900]
UDP packet read bytes [275] out of [275]
Gateway packet content (many variations for debug):
char at 0
N
char at 1
O
packetBuffer:
NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428
NTS: ssdp:alive

NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428
NTS: ssdp:alive

INTERNET_GATEWAY_DEVICE was not found
Received packet of size [338] ip [192.168.15.1] port [1900]
UDP packet read bytes [338] out of [338]
Gateway packet content (many variations for debug):
char at 0
N
char at 1
O
packetBuffer:
NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: urn:schemas-upnp-org:device:InternetGatewayDevice:1
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:InternetGatewayDevice:1
NTS: ssdp:alive

NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=3000
LOCATION: http://192.168.15.1:5431/igdevicedesc.xml
SERVER: UPnP/1.0 BLR-TX4S/1.0
NT: urn:schemas-upnp-org:device:InternetGatewayDevice:1
USN: uuid:f5c1d177-62e5-45d1-a6e7-542f8a37f428::urn:schemas-upnp-org:device:InternetGatewayDevice:1
NTS: ssdp:alive

INTERNET_GATEWAY_DEVICE found
IGD location found [http://192.168.15.1:5431/igdevicedesc.xml]
192.168.15.1
5431
/igdevicedesc.xml
Connecting to IGD with host [192.168.15.1] port [5431]
Connected to IGD
called getIGDEventURLs
deviceInfo->actionPath [] deviceInfo->path [/igdevicedesc.xml]
HTTP/1.1 501 Not Implemented
Connection: close
Content-type: text/html

<TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Timeout expired while adding a new port mapping isGatewayInfoValid [192.168.15.1] port [5431] path [/igdevicedesc.xml] actionPort [5431] actionPath [] serviceTypeName [] port [5431] actionPort [5431] Verifying rule in IGD Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD 4018 TCP

HTTP/1.1 501 Not Implemented
Connection: close
Content-type: text/html

<TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server.

Could not find port mapping in IGD
called addPortMappingEntry
Connecting to IGD with host [192.168.15.1] port [5431]
Connected to IGD
deviceInfo->actionPath []
deviceInfo->serviceTypeName []
Content-Length was: 546

4018TCP4018192.168.15.101MiniDrome36000

HTTP/1.1 501 Not Implemented

Connection: close

Content-type: text/html

<TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server.

Timeout expired while trying to add the port mapping

Port Mappings:
Connecting to IGD with host [192.168.15.1] port [5431]
Connected to IGD
Sending query for index [0]
HTTP/1.1 501 Not Implemented
Connection: close
Content-type: text/html

<TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD Sending query for index [1] HTTP/1.1 501 Not Implemented Connection: close Content-type: text/html <TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD Sending query for index [2] HTTP/1.1 501 Not Implemented Connection: close Content-type: text/html <TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD Sending query for index [3] HTTP/1.1 501 Not Implemented Connection: close Content-type: text/html <TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD Sending query for index [4] HTTP/1.1 501 Not Implemented Connection: close Content-type: text/html <TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD Sending query for index [5] HTTP/1.1 501 Not Implemented Connection: close Content-type: text/html <TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD Sending query for index [6] HTTP/1.1 501 Not Implemented Connection: close Content-type: text/html <TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD Sending query for index [7] HTTP/1.1 501 Not Implemented Connection: close Content-type: text/html <TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD Sending query for index [8] HTTP/1.1 501 Not Implemented Connection: close Content-type: text/html <TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD Sending query for index [9] HTTP/1.1 501 Not Implemented Connection: close Content-type: text/html <TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD Sending query for index [10] HTTP/1.1 501 Not Implemented Connection: close Content-type: text/html <TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD Sending query for index [11] HTTP/1.1 501 Not Implemented Connection: close Content-type: text/html <TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD Sending query for index [12] HTTP/1.1 501 Not Implemented Connection: close Content-type: text/html <TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server. Connecting to IGD with host [192.168.15.1] port [5431] Connected to IGD Sending query for index [13] HTTP/1.1 501 Not Implemented Connection: close Content-type: text/html <TITLE>501 Not Implemented</TITLE>

Not Implemented

The HTTP Method is not implemented by this server.rl�l⸮⸮|�⸮l⸮|� ⸮ l⸮ b|⸮⸮�⸮�⸮r⸮b⸮ b⸮⸮nn⸮lnn⸮⸮⸮ bpp⸮⸮lrlrl

@ofekp
Copy link
Owner

ofekp commented Feb 1, 2019

Please let's attach text files. This PR is becoming too big because of log attachments.

@lucasromeiro
Copy link

Hello, I did the second test!
I used another modem!
The conclusion was:
With the "new" library worked!
With the "old" library v2.0 did not work!

I saved the tests log to a file.
I tested 2 times in each library by changing the code.
only (https://github.com/Lan-Hekary/TinyUPnP/tree/maplist) worked, but it looks like they gave some error messages until they succeeded.

Do they need me to test on more modems?
On the modem I tested yesterday, none worked. I did several tests. I did not understand why it did not work, upnp was active and alright. I hope logs help!

SECOND MODEM TEST.txt

@lucasromeiro
Copy link

can you try another router .. I tried 2 on my side and they responded with 200 OK to the HTTP request .. This is an Implementation Error in your router I guess ..

I just tested on another router. The router I tested yesterday and upnp works. I already used this function on an IP security camera that I have.
I have now put up the test on the second modem, totally different from the first one.

@Lan-Hekary
Copy link
Contributor Author

@lucasromeiro
I think you tested with the old library only ..
the Log files Show a Debug that I Don't use any more :
Gateway packet content (many variations for debug): char at 0 H char at 1 T packetBuffer:

So please update the library with https://github.com/Lan-Hekary/TinyUPnP/tree/maplist again
this time I am confident it will work :D
thank you for your time and effort man !!

@lucasromeiro
Copy link

@lucasromeiro
I think you tested with the old library only ..
the Log files Show a Debug that I Don't use any more :
Gateway packet content (many variations for debug): char at 0 H char at 1 T packetBuffer:

So please update the library with https://github.com/Lan-Hekary/TinyUPnP/tree/maplist again
this time I am confident it will work :D
thank you for your time and effort man !!

How strange. Why then did one library work and the other did not? do not understand. Did you look at the log file? one code worked and the other did not. strange that
As for the test yesterday, none of them worked, I started using the new one and then I downloaded the old one. None worked.
I can delete the old library and test the new one so there is no conflict. I will now do and test the nova. I'll delete everything from the old one before I will not have a problem!

@lucasromeiro
Copy link

@lucasromeiro
I think you tested with the old library only ..
the Log files Show a Debug that I Don't use any more :
Gateway packet content (many variations for debug): char at 0 H char at 1 T packetBuffer:

So please update the library with https://github.com/Lan-Hekary/TinyUPnP/tree/maplist again
this time I am confident it will work :D
thank you for your time and effort man !!

did not work
see:
test.txt

@Lan-Hekary
Copy link
Contributor Author

I tracked the issue..
In the original implementation there was a check for URLBase but it was discarded ..
in my modifications I enabled it .. but the router you tested does not have a URLBase tag in the description .. which is odd ..
to get over this issue now until I investigate it further, please edit the line 646 in TinyUPnP.c file
image

to boolean urlBaseFound = true;

and test again ..

@lucasromeiro
Copy link

I tracked the issue..
In the original implementation there was a check for URLBase but it was discarded ..
in my modifications I enabled it .. but the router you tested does not have a URLBase tag in the description .. which is odd ..
to get over this issue now until I investigate it further, please edit the line 646 in TinyUPnP.c file
image

to boolean urlBaseFound = true;

and test again ..

did not work
see:
test.txt

@lucasromeiro
Copy link

I tracked the issue..
In the original implementation there was a check for URLBase but it was discarded ..
in my modifications I enabled it .. but the router you tested does not have a URLBase tag in the description .. which is odd ..
to get over this issue now until I investigate it further, please edit the line 646 in TinyUPnP.c file
image

to boolean urlBaseFound = true;

and test again ..

I found an error in the previous test!
I used the same code, but this time I filled in the field "#define FRIENDLY_NAME".
In the previous test was "<FILL THIS!>".
It does not seem to work if you have this string ...
I have to fill something.
In the other tests I had filled out. Only in the former that did not.

Here is the log:
test.txt

@lucasromeiro
Copy link

ok .. could you grab the file located at :
http://192.168.1.1:49153/62755638/wanpppconnSCPD.xml

I want to know that is wrong with request of Adding a PortMap ..
it handled GetSpecificPortMappingEntry well ..

I will look at this issue tomorrow and get back to you ..
in the meantime .. attach the wanpppconnSCPD.xml file
and further more .. try to remove any \t in this segment of code
image

search and remove it completely from the String ..
it's a long shot but it's possible that the tabs is interfering with xml parse in the router ..

I answered you at the same time.
Look at my answer above.
You need me to do what you asked for?
I can do.

@Lan-Hekary
Copy link
Contributor Author

no need :D
I didn't notice the wrong name too :"D
ok .. to the next issue the response check is somehow wrong ..
it's getting late foe me now and I am losing my focus .. can we continue this tomorrow .. I will look at it in the morning ..

also feel free to Email me a faster way to communicate over voice or video to debug the problem faster ..
my email : Lan.Hekary @ Gmail . com

@Lan-Hekary
Copy link
Contributor Author

excuse me :D ..,, I found the Bug >>
image

remove this else segment and it should work fine :D
three line >> 559, 560, 561

@lucasromeiro
Copy link

no need :D
I didn't notice the wrong name too :"D
ok .. to the next issue the response check is somehow wrong ..
it's getting late foe me now and I am losing my focus .. can we continue this tomorrow .. I will look at it in the morning ..

also feel free to Email me a faster way to communicate over voice or video to debug the problem faster ..
my email : Lan.Hekary @ Gmail . com

Thank you!
We'll continue tomorrow.
I will add you.
If it's faster, my imessage / whatsApp:
+5571986050664 / 557186050664
good night

@lucasromeiro
Copy link

excuse me :D ..,, I found the Bug >>
image

remove this else segment and it should work fine :D
three line >> 559, 560, 561

Nice. I will do

@lucasromeiro
Copy link

excuse me :D ..,, I found the Bug >>
image

remove this else segment and it should work fine :D
three line >> 559, 560, 561

Worked well!
Result:
test.txt

@ofekp
Copy link
Owner

ofekp commented Feb 5, 2019

@Lan-Hekary Please create a new PR with the debugPrint, debugPrintln as MACROs.
I want your name on this and I want everyone to enjoy this. We can continue to the rest of the changes after that is merged. Divide and conquer.

@lucasromeiro What exactly are you testing? Which branch with what changes and what issues did you find?

@lucasromeiro
Copy link

@Lan-Hekary Please create a new PR with the debugPrint, debugPrintln as MACROs.
I want your name on this and I want everyone to enjoy this. We can continue to the rest of the changes after that is merged. Divide and conquer.

@lucasromeiro What exactly are you testing? Which branch with what changes and what issues did you find?

Hello, I tested the branch that @Lan-Hekary sent!
Seems pretty good!
Works well!
But I did not succeed on one of the tested routers.
I gave him the results.
I believe he's working on it.
Version 2.0 of the library did not work very well.

@ofekp
Copy link
Owner

ofekp commented Feb 9, 2019

Version 2.0 of the library did not work very well.

On a specific router?
In what way did it not work for you that the branch fixed?

The branch is using Strings which can make the package unstable, and in fact it did and I switched to using arrays to prevent that. Short tests might not expose such issues, though.
I will need more information on what you think it fixes please.

Also, please read this:
https://miscsolutions.wordpress.com/2011/10/16/five-things-i-never-use-in-arduino-projects/

When might I use String? When writing a quick-and-dirty sketch to try something out, as long it doesn’t have to hold together for more than a few minutes!

@Lan-Hekary
Copy link
Contributor Author

Version 2.0 of the library did not work very well.

On a specific router?
In what way did it not work for you that the branch fixed?

The branch is using Strings which can make the package unstable, and in fact it did and I switched to using arrays to prevent that. Short tests might not expose such issues, though.
I will need more information on what you think it fixes please.

I believe the DEBUG macro change @Lan-Hekary made is awesome and can make this package even smaller, thus making it more stable, so please let's get that merged first.

Sorry I wasn't able to respond the past week, it was a very busy week for me
over the next few days I will track the problem with @lucasromeiro and find the solution

But I believe that the problem is not Because I am using Strings ..

in fact the problem is in the getIGDEventURLs method in the case of @lucasromeiro router ..
the router responds with 500 not Implemented .. which is weird because I asked his to fetch the same url over the browser and it worked fine ..

this Method does not use Strings at all .. I didn't even touch it is my modifications ..
and He tested the Original Library too .. same error ..

I will try to track the Bug and solve it with him ..
in the mean time I will pull request the New Branch with the New Functions

@lucasromeiro
Copy link

Version 2.0 of the library did not work very well.

On a specific router?
In what way did it not work for you that the branch fixed?
The branch is using Strings which can make the package unstable, and in fact it did and I switched to using arrays to prevent that. Short tests might not expose such issues, though.
I will need more information on what you think it fixes please.
I believe the DEBUG macro change @Lan-Hekary made is awesome and can make this package even smaller, thus making it more stable, so please let's get that merged first.

Sorry I wasn't able to respond the past week, it was a very busy week for me
over the next few days I will track the problem with @lucasromeiro and find the solution

But I believe that the problem is not Because I am using Strings ..

in fact the problem is in the getIGDEventURLs method in the case of @lucasromeiro router ..
the router responds with 500 not Implemented .. which is weird because I asked his to fetch the same url over the browser and it worked fine ..

this Method does not use Strings at all .. I didn't even touch it is my modifications ..
and He tested the Original Library too .. same error ..

I will try to track the Bug and solve it with him ..
in the mean time I will pull request the New Branch with the New Functions

Thanks for further explaining the tests we did.
I ran the tests and passed the results.
I do not know what happened because I did not study the protocol.
I just tested and passed the results to help you improve and solve problems.
I can test more when they need to!

@gnalbandian
Copy link

Is there any progress on this? or is it abandoned? It looked pretty good.

@ofekp
Copy link
Owner

ofekp commented Jan 19, 2020

@gnalbandian Many of the changes were already inserted through another PR.
Can someone volunteer to resolve conflicts so we can see what changed?

If no will take this, I will try to get to it on March.

@gnalbandian
Copy link

Should this be definitely closed? Or are there still changes to be merged?

@ofekp
Copy link
Owner

ofekp commented Mar 30, 2021

@gnalbandian, this is the diff (comparing to master branch in the fork)
master...Lan-Hekary:master

I don't see anything truly significant, I do like my debug print naming better and strcat is better in the sense that it is not affecting the Heap as much.

Unless @Lan-Hekary can point to something that solved an issue or improved the performance, I think we can close this.
I will wait for a few days and then close it.

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

Successfully merging this pull request may close these issues.

4 participants