If you need to test communication to and from a specific port you can use a software called i4SocketWorkBench that can send and receive packets on designated ports. It’s specially handy if you are developing applications to work with iOT devices and specific port software.
Download in the .git repository.