Android Question Using Serversocket from two different apps

rboeck

Well-Known Member
Licensed User
Hi,

i have created an app, which is connected to an b4j app and is able to send text from the android app to the pc and write at the cursor position.
Now i had another idea for an second app, which also will use the above pc util to transfer text. When the second app starts an come to the statement server.initialize i get the error: Adress already in use.

What are my possibilities: is there the possibility, to temporary close the first connection and switch the connection to the second app and how to i do?
Or should i make an another port adress for the second app and try to use the pc utility watching for two different ports?
 
Top