[android-developers] Re: unknown socket error -1

2008-12-02 Thread martin d.
Hi * sal wrote/ schrieb: But i dont see port# being in listening state when i do netstat -a on windows XP machine.Strange part is its not generating any exception. because of this client is unable to connect to this port I guess you only open a port inside the emulator and not on the

[android-developers] Re: unknown socket error -1

2008-12-02 Thread sal
Hi, Thanks for your concern, The problem with socketException got solved by putting INTERNET permission in manifest.xml file. But now i am encountering a new problem as follows i have created Serversocket as follows ServerSocket clientListenerSocket = new ServerSocket(); But i dont see

[android-developers] Re: unknown socket error -1

2008-12-02 Thread strazzere
Sal, Just figured I'd post this here since it might become relevant for you. If you come across the error: 12-01 18:27:52.175: WARN/System.err(764): java.net.UnknownHostException: Host is unresolved: www.strazzere.com:80 This exception was thrown whenever .connect() or .getOutputStream() where

[android-developers] Re: unknown socket error -1

2008-12-02 Thread sal
Hi Martin, I am listening in my code on port# ie emulator, so what is relevence of port redirection in this scenario, for e.r if i do port redirection as follows add tcp:: , then to which port client has to send request wheather to or Thanks Suhail On Dec 3, 1:37 am,

[android-developers] Re: unknown socket error -1

2008-12-01 Thread Huebi
You need to add the INTERNET permission to your app in the Manifest. That should solve the issue On 1 Dez., 15:27, sal [EMAIL PROTECTED] wrote: 1. Can anyone point me to simple TCP client/server program on android ?? 2. Whenever i try to create socket with port and IPaddress i get