Thing network information from Gateway?

Is it possible to get the source and destination IP and port of a thing connected to the gateway?

I’ve looked through the source code trying to find where the active web sockets are so I can log out the remote address and port for things as the gateway receives new property values but couldn’t find anything.

I have a few virtual things running using the python webthing library on port 8888 and can see the packets through WireShark. For example in the image below I’d like to know where in the code, if possible, I can find out what port the gateway is receiving property changes from, in this case port 38116.

WS-Gateway