• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to make my pc as a server  RSS feed

 
Anshal Patel
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,I have created a mobile application which runs fine over LAN (between two pcs).Now I would like to make the data available on my mobile phone using GPRS.

So how do i make my pc as a server and make it accessible from internet just as the same way I did it on LAN considering that I just have 2 servlets which would be stored in the web-inf folder (i am using apache).

best regards,
Anshal
 
Jimmy Clark
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would need to get an account from an Internet Service Provider (ISP). They will assign a set of IP addresses to your account. You can then map one of these to your PC.

Then you can optionally install a DNS server on the server machine. Then your PC will be an internet web server and you can get to your mobile application with your phone.

This has nothing to do with web services however.
 
Alex Parvan
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you can also look for some hosting that has tomcat and JVM. I don't think you'll find any for free tho.
 
Anshal Patel
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I already use apache 6.0 tomcat for localhost connectivity

now I am doing some R&D using httpd but dunno how it works.

It says i need to put the web server pages in htdocs.

But i have servlets and that cannot be shifted to the doc folder.
 
Paul Lusk
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anshal, So at risk of being run out of JavaRanch on a rail, I will ask the obvious question which could be taken as a suggestion. Is There Any Chance you have XP Pro or another OS capable of running a Default Web Site or could get such an OS without to much Difficulty? Of course the Web Site would only be available when your system was powered up and maybe you would'nt want to go that route for that reason. XP Pro is limited to 10 concurrent connections so that may ( or may not ) be a problem for your purposes Anyway just a thought . PL
 
Anshal Patel
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use xp professional Paul.And its just that I want to take my project to the next level that I would want to connect it via internet.

I already have my project working on LAN.

So my simple question is how do I use my mobile to connect to some database which is a server.

 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!