B4J Question exchanging data between b4j apps locally - Konrado (first post)    Jan 06, 2016   (1 reaction) Thanks for help. Solved it.
In the receiver I've used wrongly:
...
UDPSocket.Initialize("UDP", 5000, 8192)
...
Packet.Initialize(list1, "127.0.0.1", 5000)
instead of correctly:
...
UDPSocket.Initialize("UDP", 5000, 8192)
...
Packet.Initialize(list1, "127.0.0.1", 5001) B4J Question Two B4J apps data exchange (local) - Erel (first post)    Jan 10, 2022   (2 reactions) This is not needed. Use UdpSocket.Initialize2 and pass True to the LoopbackOnly parameter. B4A Code Snippet DIY NTP Network Atomic Clock Time - emexes    Feb 25, 2024   (3 reactions) #Region Project Attributes #MainFormWidth: 300 #MainFormHeight: 300 #End Region Sub Process_Globals Private fx As JFX Private MainForm As Form Private xui As XUI Private Button1 As B4XView Dim UDPSocket1 As UDPSocket Dim NTPPort As Int = 123 Dim NTP1970 As L B4J Question App starts only once? - Erel (first post)    Aug 16, 2021   (2 reactions) You can use UDPSocket.Initialize2 and set ReuseAddress parameter to True. It will allow multiple processes to share the port. B4i Question UDP_PacketArrived fires only one time - Mike1970 (first post)    Apr 14, 2020 i changed from
UDPSocket1.Initialize("UDP", 0, 8000)
to
UDPSocket1.Initialize("UDP",14000, 8000)
No differences B4A Question Discover clients on wifi - poya10 (first post)    Oct 15, 2022   (1 reaction) Sub Process_Globals Dim autodiscover As UDPSocket End Sub Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("layout") If FirstTime=True Then CallSub(Starter,"disconnect") autodiscover.Initialize("AutoDiscover",8084,8192) End If End Sub Private Sub A B4J Question UDP receive Data from mDNS - Peter Lewis (first post)    Dec 11, 2024 159427
so I use Wifi Access so I can Anydesk into it, and a usb to Ethernet connecting to devices
if I use
UDPSocket1.Initialize2("UDP", 5353, 8000, True,False)
Log(UDPSocket1.Port)
Log(UDPSocket1.GetBroadcastAddress)
Then I get no error
which is my main IP address.
What you are B4J Question UDP reply to client - Declan (first post)    Aug 26, 2023 I am failing to establish a connection from my Android device on port 5100 of the server.
I don't know is the following code is correct in AppStart:
UDPSocket1.Initialize("UDP", 5100, 8000) B4A Code Snippet Send and Save Data into SQLite on Another Device (using UDP) - aeric    Nov 27, 2023   (17 reactions) )", "Parameters": Array(Name, Age)) Dim data() As Byte = M.As(JSON).ToCompactString.GetBytes("UTF8") Dim Packet As UDPPacket Packet.Initialize(data, txtHost.Text, 5000) UDPSocket1.Send(Packet) xui.MsgboxAsync("Data sent!", "B4X") End Sub Data Receiver App Sub Class_Globals P B4J Question how to select an interface by using the udpsocket - electro179    May 23, 2022 Hello I have many interfaces on my computer when I use Sub Class_Globals Private fx As JFX Private udp As UDPSocket End Sub 'Initializes the object. You can add parameters to this method if needed. Public Sub Initialize udp.Initialize("event",6454,1500) End Sub it connect the ud Page: 1   2   3   4   5   6   7   Powered by ColBERT |