This is the full exception
Exception has been thrown by the target of an invocation. (Lobby.OnNetworkConnect)
UnityEngine.Debug:LogError(Object, Object)
TNet.UnityTools:Broadcast(String, Object[]) (at Assets/TNet/Client/TNUnityTools.cs:206)
TNManager:OnConnect(Boolean, String) (at Assets/TNet/Client/TNManager.cs:1143)
TNet.GameClient:ProcessPacket(Buffer, IPEndPoint) (at Assets/TNet/Client/TNGameClient.cs:752)
TNet.GameClient:ProcessPackets() (at Assets/TNet/Client/TNGameClient.cs:720)
TNManager:Update() (at Assets/TNet/Client/TNManager.cs:1128)
I have narrowed this bug down to UDP, if I use TCP everything works.
Also, it seems to be specific to my macs, something on the mac blocking the UDP???
I turn off the firewall.
I run
ipfw -f add allow udp from any MYPORT to any 1024-65535 in keep-state setup
I dont know what to do? How to trouble shoot this?
This my netstat for udp
udp:
116510 datagrams received
0 with incomplete header
0 with bad data length field
0 with bad checksum
0 with no checksum
54766 checksummed in software
52934 datagrams (7261482 bytes) over IPv4
1832 datagrams (373398 bytes) over IPv6
270 dropped due to no socket
56063 broadcast/multicast datagrams undelivered
0 times multicast source filter matched
10763 dropped due to full socket buffers
0 not for hashed pcb
49414 delivered
92640 datagrams output
61516 checksummed in software
58906 datagrams (1839034 bytes) over IPv4
2610 datagrams (311232 bytes) over IPv6