Accessing localhost:port from Android emulator

I’m running a web service on my local machine that runs at localhost:54722. I want to call the service from an app running in the Android emulator. I read that using 10.0.2.2 in the app would access localhost, but it doesn’t seem to work with the port number as well. It says HttpResponseException: Bad Request. … Read more

What is the theoretical maximum number of open TCP connections that a modern Linux box can have

Assuming infinite performance from hardware, can a Linux box support >65536 open TCP connections? I understand that the number of ephemeral ports (<65536) limits the number of connections from one local IP to one port on one remote IP. The tuple (local ip, local port, remote ip, remote port) is what uniquely defines a TCP … Read more