Hi all,
I need to open a socket to an IP address which requires username and
password to log in. I use:
Socket socket = new Socket(host, port)
How do I enter the username and password to this socket instance?
Please help.
Thanks, Lior
Gregory Toomey - 29 Aug 2004 15:50 GMT
> Hi all,
>
[quoted text clipped - 8 lines]
>
> Thanks, Lior
You dont. Opening sockets has nothing to do with userid/password.
gtoomey
Nick Pomfret - 30 Aug 2004 12:03 GMT
> Hi all,
>
[quoted text clipped - 8 lines]
>
> Thanks, Lior
Sockets don't require authentication in the way you've described. Where
exactly are you asked for a username/password? Is it when you visit that
location in your web browser?

Signature
** http://www.tabletoolkit.com **
Aggregate a JTable to an arbitrary level to create your own pivot tables
Madhur Ahuja - 30 Aug 2004 13:31 GMT
> Hi all,
>
[quoted text clipped - 8 lines]
>
> Thanks, Lior
Hello
As other said, sockets do not require authentication. The password might be
demanded by the process running behind the socket, such as if you are
connecting to telnet socket port 23.
Connect to the socket, and then send the username and password as strings.
--
Winners dont do different things, they do things differently.
Madhur Ahuja
India
Homepage : http://madhur.netfirms.com
Email : madhur<underscore>ahuja<at>yahoo<dot>com