Changed the TCP dialog to an AlertDialog for compatibility.