Results 1 to 7 of 7
  1. #1
    Kyle227's Avatar
    Kyle227 is offline Member
    Join Date
    Apr 2010
    Location
    Mass
    Posts
    47
    Rep Power
    0

    Question running java app on server?

    I am making a chat feature on a android app(android doesnt really have to do with it) and i want to have a main server and the clients. I have done a server/client thing before and ran them both on different computers before, but i want to the server app on a host so the client can connect to it anytime. So my real question is that can you run a java application on a server and connect to it form a client? Or do i have to use something else like java EE. do know it thought

    Thanks in advance

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,387
    Rep Power
    25

    Default

    can you run a java application on a server and connect to it from a client?
    Yes. That is basically how server/client applications work. The server waits with a ServerSocket and the client uses a Socket to connect to that server.

    There is a confusion here for me. You earlier said:
    I have done a server/client thing before and ran them both on different computers before
    How does your experience with the above app differ from what you are asking now?

  3. #3
    Kyle227's Avatar
    Kyle227 is offline Member
    Join Date
    Apr 2010
    Location
    Mass
    Posts
    47
    Rep Power
    0

    Default

    sorry i didnt explain it better. i was saying that a made a server app and a client app and tried it out on two computers. so you had to run the server app every time the clients wanted to connect to it. I was wondering if there was a host or server where you can put the app on it and keep it running so the clients can connect to it anytime. cause im trying to put a chat feature in my app. its on android so all people could talk to each other all the time.

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,387
    Rep Power
    25

    Default

    Sorry, I thought you were asking a programming question.
    I was wondering if there was a host or server where you can put the app
    You seem to be asking where there is a service that you could use for your app.

    I don't understand what this has to do with Advanced Java???

  5. #5
    Kyle227's Avatar
    Kyle227 is offline Member
    Join Date
    Apr 2010
    Location
    Mass
    Posts
    47
    Rep Power
    0

    Default

    ya i was wondering if there was such a thing. sorry i was having trouble putting this in a categories, should of put it in the networking section.

  6. #6
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,387
    Rep Power
    25

    Default

    Sorry, no idea where the best fit would be.

    What do you find with Google with server hosting?

  7. #7
    Kyle227's Avatar
    Kyle227 is offline Member
    Join Date
    Apr 2010
    Location
    Mass
    Posts
    47
    Rep Power
    0

    Default

    its all right.

    i looked on google and saw hosting sites for jsp and tomcat servers and stuff like that. i dont know jsp or tomcat stuff but i was hoping for something that i can connect to the server and enter the chat server port number. like xxx.xxx.x.x:4000, but it would do that in java of course. And then it would connect to the chat server.

Similar Threads

  1. Running on a Server
    By providence in forum New To Java
    Replies: 4
    Last Post: 01-31-2011, 11:11 PM
  2. how to keep server running
    By Harris68 in forum Networking
    Replies: 4
    Last Post: 12-22-2009, 10:11 AM
  3. how to run web server w/out running at eclipse?
    By anthrax in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 07-13-2009, 09:06 AM
  4. rmi when running server and client
    By anukatoch in forum Networking
    Replies: 1
    Last Post: 01-28-2009, 12:03 PM
  5. Replies: 0
    Last Post: 04-04-2008, 02:49 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •