Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 1
    I'm not sure what you are asking. This command creates a listener on port 8080 as you require (it does no "remapping" - whatever this is). It will accept connections to port 8080 even if port 12345 is down as you require. Only, it will immediately close the socket if it realizes that it can not connect to the internal port 12345. I'm not sure what you expect here instead - since there is no application protocol defined there is no way to notify the client about the problem apart from closing the connection. Commented Jul 8, 2019 at 11:45
  • 1
    Ok I see. I wanted socat to not close the socket connection if the port could not be forwarded. But if that's not possible to prevent the socket closing, I'd probably have to write my own app for this task.... Commented Jul 8, 2019 at 11:57