0

I am trying to connect two applications with Tethering one VCL (server) and the other Android (client) using AutoConnect (TimeOut and Target):

...
TCarton.AutoConnect(2000, '192.168.5.0');
...

But when connecting the client (Android) I receive an exception:

Debugger Exception Notification: Project CartonBingo.apk raised exception class EIdMCastNotValidAddress with message 'The supplied IP address is not a valid multicast address.'.

  • Have you read http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Connecting_to_Remote_Applications_Using_App_Tethering and downloaded the examples to see how it should work? – RBA Aug 21 '17 at 08:33
  • 2
    App Tethering *does* use Indy. IIPMulitcastClient is used in System.Tether.Comm, and the implementor is TIPMulticastClientPeer, in the IPPeerClient unit. According to the help: "For network adapters, ATargetList can be a list of IP adresses or subnets". For the overload being used here, it's a single IP address. Having said all that, yes.. there's a distinct lack of code. It would be more helpful to have a [mcve] – Dave Nottage Aug 21 '17 at 10:15
  • @Dave You are right, I should have looked in `IPPeerClient`(or `IPPeerServer`). Sorry for the noise. – Tom Brunberg Aug 21 '17 at 10:20
  • I was wondering if you found a solution to this, I am facing the same issue. As I'm not really familiar with Indy, Googling IPPeerClient has not helped me. – Dinesh M Jan 29 '22 at 11:08

0 Answers0