how do i connect to winsock?

here's my code..

Code:
Winsock1.RemoteHost = strServer
    
  If strSrvPort = "" Then
    Winsock1.RemotePort = 25
  Else
    Winsock1.RemotePort = Val(strSrvPort)
  End If
    
  Winsock1.Connect
this works fine if i set strserver to "mail.earthlink.net"
and if i'm connected to earthlink.net.. how do i know what system the user is using, like earthlink and set my strserver ? i don't want to ask the user and i would like to find this out at running time or design time...


help needed asap