I have a computer on my network that had multiple IP addresses and uses multiple ports. Is there any way to open a socket that receives data on all those ip addresses and all those ports, and then have the data received contain the ip address from the packet header, and the port it received it on?
Rephrase:
How can I set up a socket that can receive data on multiple ports and IPs?
Then once I receive the data, is there any way to know where the data came from?
Ofcourse in your programing language. Thats idea only.
Dont forget, that if port already used by another application, you wont be able to read or write to it – i think so…