Java

Moderators: zibadian
Number of threads: 7818
Number of posts: 18218

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Socket question Posted by David68 on 14 Dec 2004 at 1:38 PM
How do I set up a socket so it can be accessed outside my LAN?

I can use the loopback address and the LAN address, but if I use my IP address, I can not connect to it with my client. Which ServerSocket constructor should I use for this? Also, when I print out that a Serversocket has been created, and give the information, it gives the correct port number, but gives 0.0.0.0 as the address.

This is not for an assignment, just a personal project. I am trying to make a non browser based chat server/client.

Thanks in advance



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.