-
April 3rd, 2020, 13:54 #1
- Join Date
- Jun 2009
- Posts
- 16
TCP or UDP for Unity port forwarding?
I have read various comments on here that unity uses UDP for its ports and therefore you need ot saetup port forarding from your router using UDP, however the wiki states it uses TCP
https://fantasygroundsunity.atlassia...to+Join+a+Game
Can somneone clarify which protocol Unity uses
Thanks
-
April 3rd, 2020, 13:59 #2
-
April 3rd, 2020, 14:02 #3
- Join Date
- Aug 2019
- Posts
- 2,025
So FGU does not care about possible transmission errors? TCP should at least be optional then.
-
April 3rd, 2020, 14:04 #4
- Join Date
- Jun 2009
- Posts
- 16
I thought it was but wanted to check, so thanks very much for the quick reply - you might want to update the wiki
I still cant connect directly though even though im port forwarded on both TCP and UDP - so frustrating.
have posted in the connections thread with my files.
Thanks
-
April 3rd, 2020, 16:19 #5
This was raised with the developers already and they're using reliable UDP libraries. Basically error checking, packet reassembly and re transmissions ("stuff" TCP would do at the transport layer) are handled at the application/presentation layer instead in the application network libraries.
Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
April 3rd, 2020, 18:24 #6
I'm not on the team, just a community member that tries to help with the relatively little I know - mostly knowledge gained from experimentation, screwing things up, or searching the forums myself. Point being, I'm not the one to update the wiki. You're right though, it should be updated!
As far as you connecting directly, are you a player or GM? The way you worded it sounds like you're a player trying to connect. If so, you don't need to do anything besides make sure FG (Unity) is allowed through your firewall - in theory anyway. Only the GM needs to do the port-forwarding. If you're the GM, ensure you're using your "external ip" when giving it to your players, your firewall allows FG (Unity) through, you're set to Private network, and your port forward stuff is correct. If none of that is the issue, then yes, the connections forum thread is your best option. Hope you get it sorted quickly!
-
April 3rd, 2020, 18:45 #7
- Join Date
- Jun 2009
- Posts
- 16
Hi
Im the Gm but i have a laptop connected via mifi to check connectivity etc. It mean';t i could play around with the settinge etc before unleashing it on my players.
As it happens I think I've solved the issue now. It seemed to be a combination of my sky router and eset antivirusneither of which seemed to want to recognise the rules i had entered. One i had confirmed that the port forwarding was correct i ended up disableing the antivirus firewall too. Finally i managed to connect indicating it was the firewall. So it looks like the manual rule i wrote wasn't recognised. Luckily i was able to use the learning mode, reconnect again and then it automatically wrote a new rule for the firewall. So far fingers crossed it seems to work - although frustratingly i have no idea why it now works.
Thanks for the offer of help though.
Grant
-
April 4th, 2020, 14:09 #8
- Join Date
- Aug 2019
- Posts
- 2,025
-
April 4th, 2020, 21:18 #9
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,557
Because most network game libraries are only available via UDP; or else we have to write our own network facilitation system from scratch.
Regards,
JPG
-
April 5th, 2020, 01:19 #10
- Join Date
- Aug 2019
- Posts
- 2,025
I understand.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks