Thread View: comp.lang.java.help
3 messages
3 total messages
Started by Terrence Coccoli
Mon, 08 Mar 1999 00:00
Server Programming Question
Author: Terrence Coccoli
Date: Mon, 08 Mar 1999 00:00
Date: Mon, 08 Mar 1999 00:00
21 lines
1403 bytes
1403 bytes
I have a stand-alone computer with a PPP connection to my ISP and would like to experiment with server programming. Can I do this using 127.0.0.1 (localhost) as my server and client ? I have some code that creates a ServerSocket and binds it to the localhost on port 6001 and blocks on the accept method waiting for a connection. I have some other code which creates a Socket that attempts to connect to port 6001 on localhost. Unfortunately, the ServerSocket doesn't appear to detect the connection (although the socket says that it connects) I guess the big question in this is can I do server programming with my current setup or do I need a real server ? I'm working on a linux box, with jdk1.1.7, by the way. Thanks ! P.S. Any suggestions on good networking programming books ?
Re: Server Programming Question
Author: Jim Sculley
Date: Sun, 07 Mar 1999 00:00
Date: Sun, 07 Mar 1999 00:00
7 lines
912 bytes
912 bytes
I've done this sucessfully with Win95. It did seem to matter which ports I used though. Some software I have did essentially the same thing to create an HTML based on-line help system. The server listened on port 49213. Jim S.
Re: Server Programming Question
Author: Terrence Coccoli
Date: Mon, 08 Mar 1999 00:00
Date: Mon, 08 Mar 1999 00:00
11 lines
1063 bytes
1063 bytes
Jim Sculley wrote: > I've done this sucessfully with Win95. It did seem to matter which > ports I used though. Some software I have did essentially the same > thing to create an HTML based on-line help system. The server listened > on port 49213. > > Jim S. Thanks for the response. I was able to get things working after setting up the input and output streams correctly.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads