JSON Packets via Ethernet Connection

Hi everybody,

I am working on a project where I have my BBB running Angstrom connected to a router. I am sending data wirelessly to the router in a JSON format. How do I open a port so I can listen for the packets and how would I grab the actual info I want from the packet to store into my Python program?