NetTalk Central

Author Topic: UDP not passing to subnet- use TCP instead?  (Read 3190 times)

mtabakin

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
    • Email
UDP not passing to subnet- use TCP instead?
« on: May 18, 2015, 09:36:03 AM »
I implemented a feature where a NTWS will "broadcast" a text string to other PCs when the NTWS is asked to perform certain function. I used the NetAuto and the Chat examples to implement this. It works fine with PCs on the same subnet of the LAN. However PCs on subnets of the LAN are not receiving the message sent by the NTWS. I understand NetAuto will not work for WANs and the subnet is seen as a WAN apparently because of routing issues.
So I'm looking at changing over to a NetSimple method using Client and Server. Whereas, UDP is a one-to-many but won't traverse the subnets, I need to use the routeable TCP but TCP is one-to-one. Would it be correct to have the NetSimple Client (my NTWS) have a list of IPs (maybe implementing a DIP server) and loop through these IPs making one connection after another with each NetSimple Server in order to send the string to the various computers on both the LAN and the subnets of the LAN?
« Last Edit: May 18, 2015, 12:35:54 PM by mtabakin »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: UDP not passing to subnet- use TCP instead?
« Reply #1 on: May 20, 2015, 01:24:57 AM »
>> Would it be correct to have the NetSimple Client (my NTWS) have a list of IPs (maybe implementing a DIP server) and loop through these IPs making one connection after another with each NetSimple Server in order to send the string to the various computers on both the LAN and the subnets of the LAN?

correct.

Cheers
Bruce