![]() |
| ||
| very basic sun tutorial base question i am trying out this code that i got from one of suns tutorials, it deals with echoing an input back to the command prompt. this is where i got the code http://java.sun.com/docs/books/tutor...ngWriting.html this is my code, and i am getting the message "Couldn't get I/O for the connection to: 127.0.0.1" printed on the screen.. i think that i might have made a mistake while editing the hostname and port name, please look in to this and help me with the working code ..
|
| ||
| Re: very basic sun tutorial base question The above code requires that your system have an Echo-Server installed on your system. Echo-Servers normally listen on port "7" and give back whatever you write on their socket. If you are on any Microsoft OS chances are that no such server exists on your system. You can also test the presence of an echo server by typing "telnet localhost 7" on your command line and see if it connects. If it displays "Connection Refused", then thats a confirmation that there is no echo server on your system. However I remember someone posting code for a custom Echo-Server on these forums, if you do a search then you should find it. |
| ||
| Re: very basic sun tutorial base question Quote:
(Most Security guidelines require the disabling of that service.) |
| ||
| Re: very basic sun tutorial base question Quote:
i am using my own PC, and its not connected to any network |
| ||
| Re: very basic sun tutorial base question Quote:
Is there any way i could make this program running .. my ultimate goal is to communicate with other machines, located in another geographical location (using the internet), so this is my first step.. and i am very new to java , so please help me .. |
| All times are GMT -4. The time now is 12:31 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC