uPnP port bind not released - 21/01/15 01:49 AM
Apparently once a socklisten is started with the flag -p to request a uPnP port forward from your router, the bind is perminant. Even when you exit mIRC, and start it back up.
I attempted to close the socklisten with /sockclose <name>, and re-open it "without" the -p flag, yet the outside world is still allowed in. Upon closing the socket, the uPnP bind isn't released.
I stumbled upon this attempting to show a server I wrote to a couple of buddies. I thought if I closed the listener and re-opened it without -p they'd no longer be able to access it and I could continue working on it locally. No matter how many times I close the listener and re-open it, they were able to still connect. Also it remains if I exit and re-open mIRC and start the socklisten without -p, they're still able to connect once the socklistens opened again.
I haven't tried restarting windows yet to see if the bind dissapears (my IP from my router is static so if the port forward stays even a computer restart won't resolve it)
I'm not entirely sure this is a bug, I don't fully know how uPnP works, but I would assume it's possible to request, and cancel a bind.
I attempted to close the socklisten with /sockclose <name>, and re-open it "without" the -p flag, yet the outside world is still allowed in. Upon closing the socket, the uPnP bind isn't released.
Code:
;== Request uPnP port forward socklisten socklisten -p Name 80 ;== Close the socket sockclose Name ;== Listen again only locally this time no bind socklisten Name 80
I stumbled upon this attempting to show a server I wrote to a couple of buddies. I thought if I closed the listener and re-opened it without -p they'd no longer be able to access it and I could continue working on it locally. No matter how many times I close the listener and re-open it, they were able to still connect. Also it remains if I exit and re-open mIRC and start the socklisten without -p, they're still able to connect once the socklistens opened again.
I haven't tried restarting windows yet to see if the bind dissapears (my IP from my router is static so if the port forward stays even a computer restart won't resolve it)
I'm not entirely sure this is a bug, I don't fully know how uPnP works, but I would assume it's possible to request, and cancel a bind.