0

I have two applications: a client and a server which communicate through port 1234. For some reasons this port is blocked on our system but everything works correctly on port 1235 (checked with two simple C++ Client/Server applications)

Can I do a bi-directional port forwarding as shown in the figure below:

bi-directional Port-Forwarding

I want to know if it would be possible to encapsulate all the stream from port 1234 into one stream on port 1235.

Informations:

  • OS: Windows Server 2008 (Client and Server machine)
  • Access rights: Administrator (Client and Server Machine)
5
  • 1
    yes, this should be doable, provided there are routers on each end that you can configure. you could even do it on the LAN just using ssh tunneling. TCP\1234 has historically been used by many malware strains, including W32\Beagle, so that is likely why its blocked. personally I'd pick a port a bit higher, like between 5000 and 10000, because OSes commonly assign ports sequentially starting at 1024 for adhoc client connections, but that's just a matter of readability. Commented Jun 16, 2021 at 8:51
  • @FrankThomas Thanks for this information. I will investigate
    – Alpha_33
    Commented Jun 16, 2021 at 9:20
  • @KamilMaciorowski Thank you. Suggested modification done.
    – Alpha_33
    Commented Jun 16, 2021 at 9:20
  • 1
    Kinda XY problem. The most elegant solution is to unblock the port. As an administrator you should be able to do this, unless the port is blocked somewhere in between. Or you may be able to reconfigure the client and the server software to use another port. Please confirm you have truly considered and rejected these ideas. Commented Jun 16, 2021 at 9:32
  • @KamilMaciorowski network administrators don't want to touch the network configuration. reason why I'm here ...
    – Alpha_33
    Commented Jun 16, 2021 at 9:46

0

You must log in to answer this question.

Browse other questions tagged .