Home Forums Support Do you have a way I can send data using the local network identifier?

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #4406
    Anonymous
    Inactive

    Hello

    I shall try to send data to the server specified by the client

    I can send data using the IP address and port.

    Do you have a way I can send data using the local network identifier?

    I only made it as a sample, but it did not work.
    Please provide a sample that works for me

      Dim targetServerConnectionInfo As ConnectionInfo = New ConnectionInfo(ConnectionType.TCP, "MY Network Identifier", New IPEndPoint(IPAddress.Any, CInt(4040)), True)
            Dim stringToSend As String = "Hello World"
    
            NetworkComms.SendObject("Message1",
                                   CType(targetServerConnectionInfo.RemoteEndPoint, IPEndPoint).Address.ToString(),
                                   CType(targetServerConnectionInfo.RemoteEndPoint, IPEndPoint).Port,
                                   stringToSend)
    • This topic was modified 7 years, 12 months ago by .
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.