-1

I made a Server via Sockets with the port 5902. The client can connect, but only if I forward the port on the router. Is there a (simple) way (with a library?) to create a tunnel through port 80? Because somebody told me I should do this but I don't know how to.

P.S. I don't want that a library creates the 5902 socket and for example writes all recieved data in a file or in the console, I want (if it's possible) that I have my Socket and get all data there.

Mark Rotteveel
  • 100,966
  • 191
  • 140
  • 197
abilnf
  • 67
  • 8

1 Answers1

0

If you can use the third-part library,just like netty,you can read the example netty proxy which can filter all over data from a port and then you can send them to target port or discard them.

dabaicai
  • 999
  • 8
  • 9