Android Question Socket Connection Error

ykucuk

Well-Known Member
Licensed User
Longtime User
Hello,

I am trying connect zebra 420t printer over LAN.

Below code is working on vb.net (windows platform)

B4X:
Dim ipAddress As String = "192.168.2.181"
Dim port As Integer = 9100

Dim client As New System.Net.Sockets.TcpClient
client.Connect(ipAddress, port)

unfortunately it doesn't work at b4a (Network Lib 1.51)
B4X:
Socket1.Initialize ("Socket1")
Socket1.Connect ("192.168.2.181",9100,0)

return connection failed at
B4X:
Socket1_Connected (SuccessfulAsBoolean)

Do i need add some permission to my project. What is the problem

any help ?
 
Top