• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Java's network api

Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Java has a network api where you can put together a simple server using the server socket class. My question is do you just need an active jvm to run it? How do you go about finding a host for something like that? You would not use servlets and tomcat because it is a server already right?
best scout
Posts: 1294
Scala IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi William,

there are many ways to build client-server-applications and there are a lot of client-server-applications. As always it depends... You should ask yourself what you want to do with this application. Are there any restrictions regarding the server or client side? Or would you provide the client and the server? What kind of information do you plan to exchange between client and server? Etc.....

Of course you can build a server application with the Java socket API. Tomcat is a Servlet container designed to handle Java based web applications. But in the end it acts as a socket based server too.

An elephant? An actual elephant. Into the apartment. How is the floor still here. Hold this tiny ad:
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic