I am trying to make a simple chat client application for a school assignment.
However the packets are being blocked by the router. I was suggested using UPNP to forward ports but the thing is that my i don’t think i would be able allowed to use such a program due to security issues.
Are there any alternatives to UPNP for port forwarding one those can be used in a school setting, if i use UDP instead of TCP will i still need to forward port.
In the end i just want to achieve a simple transmission of messages over internet.
ADD: and i forgot to mention that i as a constraint for the project i cannot use anything non-microsoft.
Port Forwarding has nothing to do with C# or .NET – its a feature of the router to forward outside connection through a specific port to the internal address on the network.
Port forwarding is usually an issue with TCP/ip sockets (remoting). It is usually not an issue with webservices, they use standard protocols and go through the port 80, which is used by browsers.
If port forwarding is an issue, perhaps you should switch from TCP/IP to WebServices for your communication solution.