|
-
Networking
I have some experience using the Socket class and ServerSocket class in the java.net package.
However, I want to be able to connect to my Server using a domain name instead of having to know the IP of the server.
Right now of course I just tell my client to connect to 127.0.0.1 but I'd like to be able to have clients connect to the server without having to know my exact IP. Using a domain name or my computer name?
Anyone have ideas?
Also, when creating a chat program using the aforementioned classes, if your server recieves multiple requests from various clients would you create a separate socket for each client to talk to the server or could you use threads to let multiple clients use one socket, one port?
The help is very much appreciated.
Similar Threads
-
Replies: 15
Last Post: 07-31-2002, 10:56 AM
-
Replies: 1
Last Post: 10-12-2000, 04:35 PM
-
By Paul Clapham in forum VB Classic
Replies: 6
Last Post: 06-20-2000, 02:15 PM
-
By Paul Clapham in forum VB Classic
Replies: 0
Last Post: 06-19-2000, 06:20 PM
-
By Trevor in forum VB Classic
Replies: 0
Last Post: 03-16-2000, 02:53 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks