Visual Basic Examples

ChilkatHOMEAndroid™ASPVisual BasicVB.NETC#iOS (IPhone)Objective-CC++CMFCDelphiFoxProJavaPerl
PHP ExtensionPHP ActiveXPythonPowerShellRubySQL ServerVBScript

VB Examples

Bounced Mail
Bz2
Character Encoding
CSV
Digital Certificates
Digital Signatures
Email
FTP
HTML Conversion
HTTP
IMAP
Encryption
MHT / HTML Email
POP3
RSA
S/MIME
SFTP
SMTP
Socket
Spider
SSH
SSH Key
SSH Tunnel
String
Tar
Upload
XML
XMP
Zip Compression

More Examples...
Amazon S3
Email Object
DKIM / DomainKey
NTLM
DH Key Exchange
DSA
FileAccess
RSS
Atom
Self-Extractor
Service
Bzip2
PPMD
Deflate
LZW


VB Strings
VB Byte Array

 

 

 

 

 

 

 

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)


 

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