I don’t know if it’s the right place to ask this question but I have a project where I have to create several ssdp request packets and I am having trouble understanding the ssdp request packet format. So I know there’s host, ST, Port and MX field in a ssdp request packet. My question is: ..
I’m trying to get a socket connection between two different terminals. When they are both on the same computer, or on a different computers on the same network (behind my home router), it works fine. Here is a minimal example of the code I use. On the client side I enter the IP address I ..
I am detecting whether the external IP has changed with miniupnpc. And during my testing I’ve noticed that when I turn off Wi-Fi (disconnect my pc from the internet) I get an error which I cannot catch with the exception. It appears to be printed to the console. u = miniupnpc.UPnP() u.discoverdelay = config.svc_upnp_disc_delay try: ..
I am trying to open a server socket on a specific port forwarded by the library miniupnpc. The problem is that I can’t reach my server from other external devices in any way. Here’s the server.py: from miniupnpc import UPnP import socket upnp = UPnP() def forward_port(port_no): upnp.discoverdelay = 10 upnp.discover() upnp.selectigd() upnp.addportmapping(port_no, ‘TCP’, upnp.lanaddr, ..
I need to make use of UPnP for an application I’m building as I need to port forward in my script. Because I couldn’t compile or find a working version of minupnpc for python3, I used this module: https://github.com/flyte/upnpclient But when I try to discover the devices on my network, the script hangs for a ..
I would like to preface that I am new to networking and still working on my python skills so go easy on me. I have started working on a network scanning project and have played with multiple protocols to try and find what works best for my purposes. SSDP seems to be the best for ..