Network Library Question

Bill Norris

Active Member
Licensed User
Longtime User
Am trying to familiarize myself with Network library. Have downloaded the sample file in Network tutorial. When I start the file_transfer application on the desktop, I get message:

no connection could be made because the target machine actively refused it 127.0.0.1:5007

There are instructions in the tutorial that seems to address this issue, and says:

This is done by issuing "adb forward tcp:5007 tcp:2222"

What does this mean by "issue" the command. I tried in a command line but apparently that is not what it means. I am connecting to device through B4A bridge.
 

barx

Well-Known Member
Licensed User
Longtime User
you need to use adb.

Open command prompt.

Type 'adb devices' to see if you device is detected (note if the command if not recognised then you will have to navigate cmd to where the adb application is stored. Usually 'platform tools' for 'tools' in android folder )

If your device is detected then type 'adb remount'

then type the command in....

'adb forward tcp:5007 tcp:2222'
 
Upvote 0

Bill Norris

Active Member
Licensed User
Longtime User
Device Not Found

Command prompt says Device Not Found. When I type ADB devices, says List of Attached Devices, but nothing listed.
 
Upvote 0

Bill Norris

Active Member
Licensed User
Longtime User
Followup

From what I am reading, it appears that in order for all of this to work requires usb connection for desktop to device. I have been trying to do it wirelessly.
 
Upvote 0
Top