© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
4 replies
LordoToasty

PCP request to router (port forwarding) problem.

Hi and thank you for opening this post and considering helping me,...I want my application to "forward" a port for TCP traffic, tho till now I've been using UpNP which, from what I found out is pretty insecure and it does not work always due to it being disabled, so I wanted to attempt to do the port forwarding via PCP, but for the UpNP I used the mono.nat library so it was pretty easy to get around and that's why I don't get how to construct the message. I found the documentation and the passage that contains the format of how the message is supposed to be formatted like, tho I have no idea how to do do that in C#, should I use mappings or perhaps sockets? ...and how to implement.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

WSL2 port forwarding issue
C#CC# / help
7mo ago
Docker container not port forwarding
C#CC# / help
2y ago
problem with request
C#CC# / help
2y ago
Forwarding T to other generic method
C#CC# / help
3y ago