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 4 of 4

Thread: Chat Program over internet

  1. #1
    Junior Member gurukarate's Avatar
    Join Date
    May 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Chat Program over internet

    I has write chat program, and its work in my computer (localhost as my ip/hostname), but, how I can run in other computer(internet) ? whats port must I use? what hostname?

    (sorry my english is very bad),

    Thanks
    Last edited by gurukarate; May 31st, 2012 at 12:15 PM.


  2. #2
    Member
    Join Date
    Apr 2012
    Location
    Superior, CO, USA
    Posts
    80
    Thanks
    0
    Thanked 14 Times in 14 Posts

    Default Re: Chat Program over internet

    Theoretically you could use any port but many will be blocked by firewalls. Can you give us a few more details about the program? Is this a school project or a commercial type of project?
    Need Java help? Check out the HotJoe Java Help forums!

  3. #3
    Junior Member gurukarate's Avatar
    Join Date
    May 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Chat Program over internet

    no, this is not for school or comercial
    I just want to know how to pass text over internet with my program

  4. #4
    Junior Member
    Join Date
    Jun 2012
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Chat Program over internet

    The program will work online if it works within the local network. The only thing you have to do is, if you have a router, forward the port your program is using. This is very different for every router, so you will probably have to look in the manual.

Similar Threads

  1. Chat Program Help
    By WooZy in forum Java Networking
    Replies: 1
    Last Post: April 30th, 2012, 06:16 AM
  2. Very simple chat program hanging
    By taghack in forum What's Wrong With My Code?
    Replies: 7
    Last Post: November 3rd, 2011, 10:37 PM
  3. Simple client-server chat program
    By Saloni Patil in forum Java Networking
    Replies: 3
    Last Post: October 22nd, 2011, 09:29 AM
  4. Replies: 1
    Last Post: October 16th, 2011, 10:35 AM
  5. Java LAN Chat Program
    By nevilltron in forum Java Theory & Questions
    Replies: 1
    Last Post: February 11th, 2010, 03:15 AM