Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: server and client

  1. #1
    Junior Member
    Join Date
    Dec 2011
    Location
    India
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default server and client

    My question is very basic , Is it possible to create and run Server and Client programs on same PC? if yes then how i mean by using different port number or anything else.

    actually i need to do socket programming, some File Transfer(FTP operations),and other operations.
    I don't have two separate computers for Client and Server.

    please help me.
    Thanks for your time.


  2. #2
    Senile Half-Wit Freaky Chris's Avatar
    Join Date
    Mar 2009
    Posts
    834
    My Mood
    Cynical
    Thanks
    7
    Thanked 105 Times in 90 Posts

    Default Re: server and client

    Yes it is possible, just connect to localhost. You can listen for incoming on a port and send outgoing on the same port no problems at all. As a general rule Java Scoket tutorials teach you to use local host on your own machine anyway!

    Have a good

    Chris

  3. The Following User Says Thank You to Freaky Chris For This Useful Post:

    lanpan (December 24th, 2011)

  4. #3
    Junior Member
    Join Date
    Dec 2011
    Location
    India
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: server and client

    Thank you Chris,
    Merry X-Mas.

    Lanpan

Similar Threads

  1. server client upercase
    By Hokorippoi in forum What's Wrong With My Code?
    Replies: 1
    Last Post: March 27th, 2011, 04:45 PM
  2. simple ftp server and ftp client
    By simontkk2005 in forum Java Networking
    Replies: 4
    Last Post: January 26th, 2011, 10:29 AM
  3. Client/Server
    By Dillz in forum Paid Java Projects
    Replies: 2
    Last Post: June 2nd, 2010, 05:19 AM
  4. Client-Server program
    By Reztem in forum What's Wrong With My Code?
    Replies: 0
    Last Post: May 12th, 2010, 05:36 PM
  5. [SOLVED] The concept of Server and Client
    By rendy.dev in forum Java Theory & Questions
    Replies: 3
    Last Post: January 18th, 2010, 04:13 AM