[android-developers] Re: Question about ServerSocket

2008-11-18 Thread Brian Manning
On Mon, Nov 17, 2008 at 1:04 AM, 川邊泰誌 [EMAIL PROTECTED] wrote: Hi, I had tried to give the permission android.permission.INTERNET, using telnet and execute a command redir add tcp:400:400. But, same exception A java.net.BindException was thrown. Does Android still adhere to the *NIX

[android-developers] Re: Question about ServerSocket

2008-11-18 Thread riverwide
Hi, Certainly, when the port of waiting for the server was assumed to be well known ports(0-1024), the exception was thrown. When I use a port above 1024, I was able to new a ServerSocket instance. It doesn't operate according to the expectation though I am trying use port 4000, now. On the

[android-developers] Re: Question about ServerSocket

2008-11-18 Thread linker lv
you must use telnet 10.0.2.2 if you want to telnet to emulator. 10.0.2.2: emulator's IP. 2008/11/19 riverwide [EMAIL PROTECTED] Hi, Certainly, when the port of waiting for the server was assumed to be well known ports(0-1024), the exception was thrown. When I use a port above 1024, I was

[android-developers] Re: Question about ServerSocket

2008-11-17 Thread linker lv
public static final int SERVERPORT = ; public void server() { DataOutputStream os=null; DataInputStream is = null; ServerSocket socket = null; Socket ClientSocket = null; String out = null; try { socket = new

[android-developers] Re: Question about ServerSocket

2008-11-14 Thread Alvin Yates
If it's on the page, more than likely. However, if you haven't set your manifest file to add the NETWORK permission, that would do it easily. On Nov 13, 10:40 pm, riverwide [EMAIL PROTECTED] wrote: Hi, I want to new a ServerSocket instance.(java.net.ServerSocket) But I can't. A

[android-developers] Re: Question about ServerSocket

2008-11-14 Thread linker lv
just need give the permission. android.permission.INTERNET 2008/11/14 riverwide [EMAIL PROTECTED] Hi, I want to new a ServerSocket instance.(java.net.ServerSocket) But I can't. A java.net.BindException was throws.(java.net.BindException: Permission do not allow action on socket) Is it