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
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.
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.
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!
no, this is not for school or comercial
I just want to know how to pass text over internet with my program
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.