I've started to do some basic network programming.
I have read/written my own programs using TcpClient
and TcpListener
and that has worked fine.
However, the application I am working on now works a bit differently.
I want to set up a program that listens for tcp/ip packets without having to connect.
For example, have a packet sending app send a packet to my program with the appropriate ip add and port number.
I have also looked into using Sharppcap and packet.net but all of the examples I've found only listens on devices found locally (no opportunity to set parameters such as port number and ip add).
Does anyone have a suggestion on how to go about doing this?