File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes Mini Web Server: where the results appear in this case Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Mini Web Server: where the results appear in this case" Watch "Mini Web Server: where the results appear in this case" New topic
Author

Mini Web Server: where the results appear in this case

Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403
A miniature Web Server like below, run success http://localhost:6789/new.html, how can run on live server?
how run online remote/live server, and where the results appear in this case?
in case, local host appear in CLI...I RUN SERVER...

Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8996
    
    9

the way I parse your question, you are asking where the output will appear if you run the code above on a headless server. How do you propose to run it? A service?


[How To Ask Questions On JavaRanch]
Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403
I RUN IT localhost success, and when a request FROM BROWSER for url:
http://localhost:6789/new2.html
done, appeared in Command Line Interface(whereas SERVER running) the header, how to: this remotely/live server as textbook refers?

When I insert in browser http://localhost:6789/new.html
appear in Command Line this(in live server where this appear?):

how run server class file in REMOTE server and see results?
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8996
    
    9

Leonidas Savvides wrote:
how run server class file in REMOTE server and see results?


PLEASE DON'T USE ALL CAPS. It reads like you are yelling..

As for how to run the class on the server, how are you accessing the server? What OS is it?
Servers aren't magical places. They're still computers and they still have a command line. Unless you want to do something fancy like a service or daemon, run your class like you would on a desktop.
Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403
Linux/Java tomcat/jdk 6 (godaddy.com shared hosting server - JAVA/PHP Supported)

may run from this simplest host environment or needed dedicated or v-dedicated servers for ...?
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8996
    
    9

I don't know about godaddy in particular, but the shared hosting environments I've seen will not let users start their own servers.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Mini Web Server: where the results appear in this case