This week's book giveaways are in the Jython/Python and Object-Oriented programming forums.
We're giving away four copies each of Machine Learning for Business: Using Amazon SageMaker and Jupyter and Object Design Style Guide and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

how to make my pc as a server

 
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
 
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.
 
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.
 
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.

 
Danger, 10,000 volts, very electic .... tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!