Tag Info

New answers tagged

0

The problem is probably that nc is a two-way connection, but popen() only uses one way. When the remote server tries to read from the connection, nc will read from its stdin, which you are not setting, so it probably gets eof and so the connection closes. Instead of popen() use the bidirectional subprocess.Popen(). import subprocess cmd = "nc -v [MY IP] ...


0

Although, this task is rather old, I post the answer, I was looking for, myself. Your UPnP-reply posted the location "http://192.168.1.1:1780/InternetGatewayDevice.xml" There you can get more info about data format. For my router: I got there more paths to xmls. Calling them, there is more UPnP info. resulting in this: I called: POST ...



Top 50 recent answers are included