Android Question TCP send string

Devv

Active Member
Licensed User
Longtime User
How could i send a simple string over tcp to a local tcp server ?

i had made this simple tcp server script using Autoit
B4X:
TCPStartup()
$listen = TCPListen(@IPAddress1,403)

Do
$accept = TCPAccept($listen)
Until $accept <> -1

Do
    $recive = TCPRecv($accept,10000000)
Until $recive <> ""

MsgBox(0,0,$recive)


this will show the first string that will be received by my PC on port 403

how can i send the string "hi" using b4a to port "403" and ip "192.168.1.111" ?
any ideas how to do it as simple as possible ?
 

Devv

Active Member
Licensed User
Longtime User
Mr Erel
may you explain the difference ?
for me i think text writer is easier right ?
i only want to send small strings to local tcp server
 
Upvote 0
Top