Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Using java Telnet client to telnet into win XP server from Unix server  RSS feed

 
terry Kiernan
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am using the telnetClient to telnet onto a windows machine within java - I get as far it acepting my user name but when t comes to the Password - it hangs - I have sentd down the password +EOL
EOL being the "\r\n" however it hangs on it


The send method has the following :

void send(String s) {
os.write(s.getBytes());
os.flush();
}


This works fine on unix platforms but connecting to windows platform i am faced with the hanging issue !


Any ideas ,

Much appreciated !
 
Rob Spoor
Sheriff
Posts: 21095
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Sockets / Internet protocols.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!