Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

finding IP address

 
SP Nam
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to find IP address by sending smtp (esmtp) commands to various mail servers which run on smtp, code help please
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're asking how to find mail servers, or, once you're connected to a mail server, how to find its address?
Note that without the address, you can't connect to the mail server, so I'm really not sure what you're asking. Can you rephrase the question?
 
SP Nam
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Once I connected to mailserver how to get IPAddress is my point, Is there any code to get IPAddress once connected to mail server
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, you've got a Socket, right? Call getInetAddress() on the Socket.
But if you don't know the address, how could you possibly have connected to the server in the first place?

Maybe this is a JavaMail question. Are we talking about JavaMail?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic