title: Socket.io FileNotFoundException in android
body: <p><a href="https://i.stack.imgur.com/7bpQV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7bpQV.png" alt="enter image description here"></a>I try to create socket connection between note.js and android.This is node.js source</p>
  
  <pre><code>&lt;script src="/socket.io/socket.io.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  var socket = io.connect('http://192.168.101.139:8080' );
  
  socket.emit('initialize', { 
      host: "*******",
      entity: "*******"
  } );    
  
  socket.on('onconnect', function (data) {
      console.log(data);    
  });
  
  socket.on('onerror', function (data) {
      console.log(data);    
  });
  
  socket.on('device', function (data) {
      console.log(data);    
  });
  </code></pre>
  
  <p>
  Client Display!
  This is android source</p>
  
  <pre><code> try {
          SocketIO socket = new SocketIO("http://192.168.101.139:8080");
          socket.connect(new IOCallback() {
              @Override
              public void on(String event, IOAcknowledge ack, Object... args) {
                  if ("echo back".equals(event) &amp;&amp; args.length &gt; 0) {
                      Log.d("SocketIO", "" + args[0]);
                  }
              }
  
              @Override
              public void onMessage(JSONObject json, IOAcknowledge ack) {
              }
  
              @Override
              public void onMessage(String data, IOAcknowledge ack) {
              }
  
              @Override
              public void onError(SocketIOException socketIOException) {
                  socketIOException.printStackTrace();
              }
  
              @Override
              public void onDisconnect() {
                  Log.e("onDisconnect","onDisconnect");
  
              }
  
              @Override
              public void onConnect() {
                  Log.e("onConnect","onConnect");
              }
          });
          socket.emit("echo", "hello");
      } catch (MalformedURLException e) {
          e.printStackTrace();
      }
  </code></pre>
  
  <p>When i run my app i have FileNotFoundException.</p>
  
  <pre><code>android {
  compileSdkVersion 25
  buildToolsVersion "25.0.2"
  defaultConfig {
      applicationId "com.example.bekakukhalashvili.unipaypalyertest"
      minSdkVersion 19
      targetSdkVersion 25
      versionCode 1
      versionName "1.0"
      testInstrumentationRunner       "android.support.test.runner.AndroidJUnitRunner"
  }
  buildTypes {
      release {
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
      }
  }
  </code></pre>
  
  <p>}</p>
  
  <pre><code>    dependencies {
      compile fileTree(include: ['*.jar'], dir: 'libs')
      androidTestCompile('com.android.support.test.espresso:espresso-   core:2.2.2',   {
      exclude group: 'com.android.support', module: 'support-annotations'
  })
  compile 'com.android.support:appcompat-v7:25.1.0'
  testCompile 'junit:junit:4.12'
  compile files('libs/socketio.jar')
  </code></pre>
  
  <p>}</p>
  
  <p><a href="https://github.com/socketio/socket.io-client-java/issues" rel="nofollow noreferrer">I'm using this socket.io library</a>
  In node.js side i'm socket.io latest version  1.7.3
  how i can solve my problem and  what would be my problem?</p>