Author Topic: TNet on Mac says Udp.Start: Address already in use  (Read 7807 times)

tonyM

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 24
    • View Profile
TNet on Mac says Udp.Start: Address already in use
« 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

tonyM

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 24
    • View Profile
Re: TNet on Mac says Udp.Start: Address already in use
« Reply #1 on: June 05, 2013, 05:41:58 PM »
Upgrading to 1.7 did not help. (Same error)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TNet on Mac says Udp.Start: Address already in use
« Reply #2 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.

tonyM

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 24
    • View Profile
Re: TNet on Mac says Udp.Start: Address already in use
« Reply #3 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.

tonyM

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 24
    • View Profile
Re: TNet on Mac says Udp.Start: Address already in use
« Reply #4 on: June 06, 2013, 04:34:26 PM »
Can anyone try the example scenes on a Mac so I narrow down the problem please?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TNet on Mac says Udp.Start: Address already in use
« Reply #5 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.

tonyM

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 24
    • View Profile
Re: TNet on Mac says Udp.Start: Address already in use
« Reply #6 on: June 07, 2013, 12:11:56 PM »
Thanks. Worked fine for me too after a restart.

Keep up the good work! :-)

hippocoder

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 30
    • View Profile
Re: TNet on Mac says Udp.Start: Address already in use
« Reply #7 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.