StreamingSocket bindToPort problem

Hi, I'm trying to setup a TCP server on android with StreamingSocket and bindToPort, but no matter which port I choose (>1024) bindToPort always fails. I've the android.permission.INTERNET set.

I don't know the answer, but I assume you've seen this:

Thanks, I haven't! Interesting, I'll check see if that is the problem.

Dammit. No, even if port is within the ephemeral range, bindToPort still returns false. 

is the errno when checked directly after bindToPort. Ideas ?

Ah. Scrap it all. I'm now using the IPC classes, works fine for my use case.