A
A
aroun2016-12-06 17:44:34
linux
aroun, 2016-12-06 17:44:34

How to connect two ports?

How to make two clients connect to different ports on the same server and interact with each other?

For example, one clung to 1111, the other 2222 and exchanged data, the format is not important, raw data.

I did not find a ready-made solution, maybe I was looking badly? I so understand it is necessary to lift sockets?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Sergey, 2016-12-06
@aroun

socat tcp-l:1111,fork,reuseaddr tcp-l:2222,fork,reuseaddr

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question