Tasharen Entertainment Forum

Support => TNet 3 Support => Topic started by: tonyM on June 05, 2013, 05:15:17 PM

Title: TNet on Mac says Udp.Start: Address already in use
Post by: tonyM on June 05, 2013, 05:15:17 PM
Hi,

My application runs fine on windows but if I try to run it on a Mac I get this exception.

  1. Udp.Start: Address already in use
  2. UnityEngine.Debug:LogError(Object)
  3. TNet.UdpProtocol:Start(Int32) (at Assets/TNet/Common/TNUdpProtocol.cs:89)
  4. TNet.UdpLobbyServer:Start(Int32) (at Assets/TNet/Server/TNUdpLobbyServer.cs:49)
  5. TNServerInstance:StartLocal(Int32, Int32, String, Int32) (at Assets/TNet/Client/TNServerInstance.cs:161)
  6. TNServerInstance:Start(Int32, Int32, String, Int32) (at Assets/TNet/Client/TNServerInstance.cs:132)
  7. ExampleMenu:DrawConnectMenu() (at Assets/TNet/Examples/Scripts/ExampleMenu.cs:148)
  8. ExampleMenu:OnGUI() (at Assets/TNet/Examples/Scripts/ExampleMenu.cs:77)

Repro steps:
1. Run ExampleMenu scene in editor
2. Click 'Start a local server'

Can anyone else test and let me know if they have the same issues please?
Thanks
Title: Re: TNet on Mac says Udp.Start: Address already in use
Post by: tonyM on June 05, 2013, 05:41:58 PM
Upgrading to 1.7 did not help. (Same error)
Title: Re: TNet on Mac says Udp.Start: Address already in use
Post by: ArenMook on June 06, 2013, 07:13:09 AM
This happens when you try to run the server twice on the same machine. For example if you've launched TNServer.exe as well as starting a server from within the game.
Title: Re: TNet on Mac says Udp.Start: Address already in use
Post by: tonyM on June 06, 2013, 09:38:20 AM
Yes I know but in this case I'm running one server only and I still get the same error.
Title: Re: TNet on Mac says Udp.Start: Address already in use
Post by: tonyM on June 06, 2013, 04:34:26 PM
Can anyone try the example scenes on a Mac so I narrow down the problem please?
Title: Re: TNet on Mac says Udp.Start: Address already in use
Post by: ArenMook on June 07, 2013, 09:45:49 AM
Works fine for me, but I did notice that there is an issue with connecting to a LAN server on the mac when going through the external IP first. I'll fix that shortly.
Title: Re: TNet on Mac says Udp.Start: Address already in use
Post by: tonyM on June 07, 2013, 12:11:56 PM
Thanks. Worked fine for me too after a restart.

Keep up the good work! :-)
Title: Re: TNet on Mac says Udp.Start: Address already in use
Post by: hippocoder on August 27, 2013, 05:41:55 PM
Hi,

This happens to me as well on my mac. But only if a client has crashed and left his player sitting around. I have to reboot mac. Although I am starting the server with mono as an exe if that helps.