How to use NetCat for Windows to send a binary file to a TCP connection? -


if want transfer binary file "binary.bin" (located in same directory netcat) ip address 127.0.0.1 port 1200 using tcp, how specify using netcat windows?

i found solution. its

nc 127.0.0.1 1200 < binary.bin 

in addition, if response needs saved

nc 127.0.0.1 1200 < binary.bin > response.bin 

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -