GreatDayDan 0 Posted October 26, 2018 "Network Unreachable" when tethering.I am running the BDShoppingList project in "C:\Users\Public\Documents\Embarcadero\Studio\19.0\Samples\Object Pascal\RTL\Tethering\BDShoppingList"It runs well in Windows but when I run the Android target I get this exception.The exception is raised in this proc: procedure TTetheringNetworkServerCommUDP.BroadcastData(const AData: TBytes; const AHost: string; InitialPort, FinalPort: Integer); var I: Integer; LHost: string; begin if TTetheringAdapter.IsLoggingItem(TTetheringAdapter.TTetheringLogItem.Comm) then TLogAdapter.Log('** UDP ** BroadcastData to "' + AHost + '": "' + TEncoding.UTF8.GetString(AData) + '"'); if AHost = '' then begin if FIPVersion = TCommIPVersion.IP_IPv4 then LHost := '255.255.255.255' else LHost := '0:0:0:0:0:0:255.255.255.255'; for I := InitialPort to FinalPort do FUDPServer.Broadcast(AData, I, LHost) end else for I := InitialPort to FinalPort do FUDPServer.SendBuffer(AHost, I, AData); end; My understanding is that to look for tethered apps on my subnets I need to use DiscoverManagers(2000, '192.168.1.0') {timeout, use all my subnets}The LHost is being assigned (255.255.255.255). Shouldn't that be (255.255.255.0)? Using CE 10.2 Share this post Link to post
Michael Puff 18 Posted October 26, 2018 Next time please use the code tags. You code becomes more readable with code tags. Thank you. 1 Share this post Link to post
Michael Puff 18 Posted October 26, 2018 Click on the </> button in the editor, paste your code in the new window and choose the appropriate language for high lightning. Share this post Link to post
Markus Kinzler 174 Posted October 26, 2018 Just now, GreatDayDan said: Code tags? Mark the source and use click on . I already done this in your first post. Share this post Link to post