I've been using TNet for a couple years now and things have been going great, until recently. Recently I've been having trouble establishing connections between 2 computers. Now I know there's a million things that could prevent users from getting connected, but I'm hoping you have some suggestions on how to alleviate this issue.
Some background about my setup:
- I'm using TNet 2 (willing to upgrade to TNet 3 if you think it would help)
- TNet's UPnP support returns successfully and I can see the ports open in the UPnP section of my router
- I also added Mono.NAT to my project to open ports via UPnP in cases where TNet's fails
Now when players try to connect they often get the connection refused error message. I've done some research into alternatives when UPnP isn't successful, and the two solutions I've found are NAT punch-through and using Relay Servers. I'd prefer to avoid paying for relay server hosting (which is one of the main reasons I purchased TNet in the first place), so the option I'm looking at now is NAT punch-through. Is NAT punch-through something you are considering adding to TNet, or do you know of any other libraries that would help with adding NAT punch-through to a TNet project? Or do you have another solution to get players connected more reliably?
Any advice is greatly appreciated!
- Dylan