I have a problem when converting to string in edit text.

**Input edit text IP number**

```
public class Client extends AppCompatActivity implements View.OnClickListener {

public static final String TAG = Client.class.getSimpleName();

public static final int SERVERPORT = 3000;

ClientThread clientThread;
Thread thread;
TextView messageTv;
String text;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    messageTv = (TextView) findViewById(R.id.messageTv);
    EditText SERVER_IP = (EditText) findViewById(R.id.ipnumber);
     text = SERVER_IP.getText().toString();
}

```