Search code examples
c#proxyreversesocks

C# Reverse PROXY (bypass NAT / FIREWALL)


right now I'm searching for like 6h to get into it! My brain is done!

Ok, here's the deal:

I'm searching a solution, to connect to a PC behind a Router which is running the Proxy Server to passthrough my Information.

So like this:

I (want to connect to 1.1.1.1) --> Internet --> 1.1.1.1 -> Router --> PC With the running Server --> Internet

I've read about STUN / STUNT.. But I actually know the IP where the Server listen to some Port.

The problem is with UDPpunch hole is, that the proxy actually doesn't know the Clients IP.


Solution

  • STUN requires a server accessible to both peers (usually that means a public IP address). The server negotiates both peer-discovery and the STUN handshake.