Author Topic: How to use the BroadcastToLAN() function  (Read 1472 times)

vzheng56

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
How to use the BroadcastToLAN() function
« on: March 10, 2014, 10:32:27 PM »
MyCode :
  1.         if (Input.GetKeyDown(KeyCode.C))
  2.         {
  3.             Debug.Log("CCCC");
  4.             MessageContain = "C";
  5.             tno.BroadcastToLAN(5127, "BroadCastMaeesge", MessageContain);
  6.         }
  7.  
  1.  
  2.   [RFC]void BroadCastMaeesge(string text)
  3.     {
  4.         Debug.Log("CCCCCC");
  5.         ScenesName = text;
  6.     }
  7.  

Server Start ,But it does not work! Any Demo? help me~

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to use the BroadcastToLAN() function
« Reply #1 on: March 11, 2014, 07:58:08 PM »
5127 is a TCP port. 5128 would be the UDP port, assuming your UDP is turned on.