Home android socket connect localhost port status refused
Reply: 0

android socket connect localhost port status refused

user459
1#
user459 Published in April 23, 2018, 9:37 am

I want to connect to port on my device. But I get error during connection

socket.connect(new InetSocketAddress("localhost", 65001), 0);

or

socket.connect(new InetSocketAddress("localhost", 9090), 0);

error I get

connect failed: ECONNREFUSED (Connection refused)

I test app on my phone. Samsung galaxy tab S2.

How I can it improve?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.408804 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO