LastError

Read-only.

The LastError property contains the error code of last TCP/IP operation. The error codes are:

0
Last operation finished successfully.
1
Timeout expired.
2
The serious system error occured.