• Post Reply Bookmark Topic Watch Topic
  • New Topic

Socket with user and password  RSS feed

 
Aiglee Castillo
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone!

I need to make a connection with sockets, where I connect with an IP address and port and start to listen for connections, so part of the code I'm using is this:



The problem is that I need to connect to that IP address, using a user and password that was assigned to me, but I don't know how to implement that.

Please! any help will be apreciated

Thank you!
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To do anything useful when connecting to a socket, you need to know the protocol being used -- i.e., what data is going to be exchanged, and in what format, in what order. Part of that knowledge would be how authentication was done. There's an infinite number of possible ways it could be done -- you have to know what the protocol is.

Now, that said: if it's a standard protocol, folks here might help you. What do you know about it? What kind of service is it supposed to be?
 
Aiglee Castillo
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, the protocol is smpp I need to send a sms to a server (with that IP) and the server should redirect the message to my application, so my application needs to listen in that port for the redirected message to arrive.
 
Aiglee Castillo
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!