Hi, I have a simple chat application using JSSE. I will demonstrate it in class at school. How can I use an Ip address, rather than a host name ? thank you, rodge
Joined: Apr 24, 2002
what exactly do you mean? if you are talking about using an ip instead of a hostname for the Socket constructor, then just use a String of the ip instead of the host. eg: Socket s = new Socket("127.0.0.1",4545); //works the same as: Socket s = new Socket("localhost",4545); is that what you're asking?
use the [CODE] tags - it makes it much easier for people to help you.