This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Can my desktop PC be my server? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Can my desktop PC be my server?" Watch "Can my desktop PC be my server?" New topic

Can my desktop PC be my server?

Bod Toki
Ranch Hand

Joined: Sep 01, 2006
Posts: 95
I want to send and recieve data between my mobile phone and my desktop pc over an internet connection. I want the mobile phone to make a request on the pc which would in turn return a response to the mobile phone. I'm thinking that running a servlet on the internet in between the two devices would be a poor design as the pc would have to keep checking for requests on the server by the mobile phone. Please any help or suggestions?
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12761
Although thats not the typical use of a servlet, there is no reason it could not generate a window on the desktop or perform some other kind of notification when a message is received. You would have to watch out for threading issues of course.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Can my desktop PC be my server?
Similar Threads
Connecting a mobile phone to PC via Bluetooth
TCP socket communication with wired internet (not WLAN)
Sending SMS from PC to MOBILE
how to make my pc as a server
running application in C on mobile phone with Android