Y ykucuk Well-Known Member Licensed User Longtime User Feb 21, 2016 #1 Hello, I am trying connect zebra 420t printer over LAN. Below code is working on vb.net (windows platform) Code: Copy 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) Code: Copy Socket1.Initialize ("Socket1") Socket1.Connect ("192.168.2.181",9100,0) return connection failed at Code: Copy Socket1_Connected (SuccessfulAsBoolean) Do i need add some permission to my project. What is the problem any help ?
Hello, I am trying connect zebra 420t printer over LAN. Below code is working on vb.net (windows platform) Code: Copy 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) Code: Copy Socket1.Initialize ("Socket1") Socket1.Connect ("192.168.2.181",9100,0) return connection failed at Code: Copy Socket1_Connected (SuccessfulAsBoolean) Do i need add some permission to my project. What is the problem any help ?
Erel B4X founder Staff member Licensed User Longtime User Feb 22, 2016 #2 No, permissions are added automatically. What is the output of Log(LastException) in the connected event? Upvote 0
No, permissions are added automatically. What is the output of Log(LastException) in the connected event?