KhanZeeshan
KhanZeeshan

Reputation: 1410

Android - Client Server App

I have developed Client Server App. My Server is a jetty based webserver that I can query from my PC's browser after redirecting a port to emulator(if my server is on emulator & I'm testing it on emulator) or to device(If my server is on my android device I'm testing it on device). My client is a simple app that does HTTP request.

Do I need to forward any port from Android device server so that my Android device client can access that server and query it?

Thanks.

Upvotes: 1

Views: 419

Answers (1)

Vaibhav Mishra
Vaibhav Mishra

Reputation: 12122

As far as I know, you can query a server running on emulator (or device for that matter) by referring it as localhost and whatever port you started it on, if your server is not local to client then you can directly call using the server's IP, your question is not very clear.

Upvotes: 1

Related Questions