openstf / ios-minicap

iOS Minicap provides a socket interface for streaming realtime screen capture data out of iOS devices.
Other
434 stars 130 forks source link

Error: connect ECONNREFUSED 127.0.0.1:12345 #25

Closed yxys01 closed 7 years ago

yxys01 commented 7 years ago

Thanks for your answer . But,when i run node app.js,i got this error: Listening on port 9002 Got a client { Error: connect ECONNREFUSED 127.0.0.1:12345 at Object.exports._errnoException (util.js:1026:11) at exports._exceptionWithHostPort (util.js:1049:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1136:14) code: 'ECONNREFUSED', errno: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 12345 } Be sure to run ios-minicap on port 12345

sorccu commented 7 years ago

The README covers that. You have to have run.sh running at the same time.

On Mon, Jul 31, 2017 at 13:22 yxys01 notifications@github.com wrote:

Thanks for your answer . But,when i run node app.js,i got this error: Listening on port 9002 Got a client { Error: connect ECONNREFUSED 127.0.0.1:12345 at Object.exports._errnoException (util.js:1026:11) at exports._exceptionWithHostPort (util.js:1049:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1136:14) code: 'ECONNREFUSED', errno: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 12345 } Be sure to run ios-minicap on port 12345

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/openstf/ios-minicap/issues/25, or mute the thread https://github.com/notifications/unsubscribe-auth/AAB-_TuoJTBu0idtMnWFyvVOrhATTqQsks5sTVZ_gaJpZM4On4px .

yxys01 commented 7 years ago

In fact,i have run.sh running at the same time,and i still got this erroe.

sorccu commented 7 years ago

Then perhaps it didn't actually start successfully. Note that the screen of your device must be on.

On Mon, Jul 31, 2017 at 13:29 yxys01 notifications@github.com wrote:

In fact,i have run.sh running at the same time,and i still got this erroe.

— You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub https://github.com/openstf/ios-minicap/issues/25#issuecomment-318964591, or mute the thread https://github.com/notifications/unsubscribe-auth/AAB-_WiQpzqfmm_xQyN5RRBMooVWOg7jks5sTVgqgaJpZM4On4px .

yxys01 commented 7 years ago

$ ./run.sh ++ system_profiler SPUSBDataType ++ sed -n -E -e '/(iPhone|iPad)/,/Serial/s/ Serial Number: (.+)/\1/p'

sorccu commented 7 years ago

It's not running. There isn't enough output.

yxys01 commented 7 years ago

How to solve this problem?

nwlunatic commented 7 years ago

Your log haven't reach resolution line, so, probably ios-minicap could not get first frame. Make sure your device screen is active. You may also try to reconnect device.

yxys01 commented 7 years ago

Thanks for your answer and sharing. I kill other port,and restart this successfully. Thanks a lot.

yxys01 commented 7 years ago

Is there a screenshot feature for ios-minicap?

sorccu commented 7 years ago

No. Use idevicescreenshot if you need that.

On Mon, Jul 31, 2017 at 16:59 yxys01 notifications@github.com wrote:

Is there a screenshot feature for ios-minicap?

— You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub https://github.com/openstf/ios-minicap/issues/25#issuecomment-318996397, or mute the thread https://github.com/notifications/unsubscribe-auth/AAB-_S8R4iiCznqB_BRdhz_iYw7Gs9soks5sTYlwgaJpZM4On4px .