Communication with server using Socket
===

I am trying to send a message to a server and get the response.
When i try to open a socket I get an exception :

I have added to AndroidManifest.xml the following lines:
<br>
< uses-permission android:name="android.permission.INTERNET" /> <br>
< uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 
  
Before the application tags.<br>
Here is the code i have:

				    String IP = "81.218.150.49";
				    int port = 32001;
				    Socket my_socket = new Socket(IP, port); //Here i get exception !!

				    BufferedWriter wr = new BufferedWriter(new OutputStreamWriter(my_socket.getOutputStream(), "UTF8"));
				    wr.write("mobiwize server login test testpswd\r\n");

				    // Send data
				    wr.flush();

				    // Get response
				    StringBuffer sb = new StringBuffer("");
				    BufferedReader rd = new BufferedReader(new InputStreamReader(my_socket.getInputStream()));
				    String line ="";
				    String NL = System.getProperty("line.separator");
				    while ((line = rd.readLine()) != null) {
				    	sb.append(line + NL);
				    }
				    httpStuff.setText(sb);
			    			    
				    rd.close();
				    wr.close();
				} catch (Exception e) {
				}


I would really thank for any help!