Visual Basic Examples

ChilkatHOMEASPVisual BasicVB.NETC#Visual C++CMFCDelphiFoxProJavaPerlPHPPythonRubySQL ServerVBScript

VB Examples

Bounced Mail
Character Encoding
Digital Certificates
Digital Signatures
Email
FTP
HTML-to-XML
HTTP
IMAP
Encryption
MHT / HTML Email
RSA Encryption
S/MIME
Socket
Spider
String
Tar
Unicode
Upload
XML
XMP
Zip Compression

More Examples...
Email Object
POP3
SMTP
RSS
Atom
Self-Extractor
Service
PPMD
Deflate
DH Key Exchange
DSA


VB Strings
VB Byte Array

Unreleased...
Bzip2
LZW
Bz2
Icon

 

 

 

 

 

 

 

Query Socket for Remote IP Address and Port

Download Chilkat Socket ActiveX

This is not a full example, but only a code fragment. It shows how the RemoteIpAddress and RemotePort properties are used to access the remote IP address and port for a connected socket.

...
 
   ' Make a synchronous call to accept the next incoming connection.
    Dim socket2 As ChilkatSocket
    Set socket2 = socket.AcceptNextConnection(maxWaitMs)
    If socket2 Is Nothing Then
        MsgBox socket.LastErrorText
        Exit Sub
    End If
    
    ' Who connected to us?
    ' Show the remote IP address and port.
    Dim RemoteIP As String
    Dim RemotePort As Integer
    
    RemoteIP = socket2.RemoteIpAddress
    RemotePort = socket2.RemotePort
    
    MsgBox "Connected to " & RemoteIP & ":" & Str(RemotePort)


 

Need a specific example? Send a request to support@chilkatsoft.com

© 2000-2008 Chilkat Software, Inc. All Rights Reserved.