How to create a listening server in windows server 2008 to recieve files from linux via nc command?

0

Right now i have a linux server listening at a port to write whatever comes at that port in a file the following way:

 nc -l -p 7777 0.0.0.0 | tee some.file

And i have a linux client that pushes a file to the server the following way:

cat ZKDB.db | nc 192.168.0.33 7777

Everything works perfectly. But the thing is that i need to replace the linux server with a windows server 2008 equivalent

What command or program can i use in windows server 2008 to achieve the same i did in the linux server?


Note: the linux client is very old embed system so i don't have much functionalities to hold on to. I barely have telnet, nc, cat, tee, etc.

Nicolas Paz

Posted 2018-10-02T11:42:44.107

Reputation: 1

Get a netcat build for Windows? – Attie – 2018-10-02T11:50:18.357

Answers

1

Windows ports for Netcat do exist and various versions can be found. Below are some that I found.

harrymc

Posted 2018-10-02T11:42:44.107

Reputation: 306 093