To find your SMTP server IP address, first identify your email provider (such as Gmail, Outlook, or your web hosting company), then locate the SMTP hostname in your email settings (for example, smtp.gmail.com) and use tools like DNS lookup, command prompt, or online MX/IP lookup services to resolve that hostname into its actual IP address. Once you have the IP, you can use it for firewall rules, server whitelisting, or advanced email troubleshooting.
Now let’s break this down properly, step by step, so you can find your SMTP server IP address no matter which email service you’re using.
How Do I Find My SMTP Server IP Address? Step-by-Step Guide
Step 1: Find Your SMTP Server Hostname (Most Important Step)
Before finding the IP, you must know the SMTP server name.
Common SMTP Hostnames
| Email Provider | SMTP Server |
|---|---|
| Gmail | smtp.gmail.com |
| Outlook / Hotmail | smtp.office365.com |
| Yahoo Mail | smtp.mail.yahoo.com |
| Zoho Mail | smtp.zoho.com |
| cPanel Email | mail.yourdomain.com |
Where to find it:
Email app settings (Outlook, Thunderbird, Apple Mail)
Webmail → Email configuration
Hosting provider documentation
Step 2: Find SMTP Server IP Using Command Prompt (Windows)
This is one of the fastest and most reliable methods.
Steps:
Press Windows + R
Type
cmdand press EnterRun this command:
The result will show one or more IP addresses
Any listed IP can be used depending on your requirement.
Step 3: Find SMTP Server IP Using Terminal (Mac / Linux)
Command:
or
You’ll see multiple A records, which means multiple SMTP IPs are active.
Step 4: Find SMTP IP Address Using Online Tools (Beginner-Friendly)
Recommended Tools:
MXToolbox
DNS Checker
WhatsMyDNS
How to use:
Open an SMTP lookup or DNS lookup tool
Enter your SMTP hostname (example:
smtp.office365.com)Select A Record
View returned IP addresses
Best for non-technical users
IPs may vary by location
Step 5: Find SMTP Server IP from Email Headers (Advanced)
If you already received an email from the SMTP server:
How:
Open the email
Click Show original / View headers
Look for:
This shows the sending IP, not always the main SMTP relay.
Step 6: SMTP IP in cPanel or Web Hosting Email
If your email is hosted on c
Finding
Panel or a VPS:
Steps:
Login to cPanel
Go to Email Accounts
Click Connect Devices
Check:
SMTP hostname
Sometimes listed IP address
If IP isn’t shown, run:
Common SMTP Ports (Don’t Skip This)
Even with the correct IP, your connection may fail if the port is wrong.
| Port | Encryption |
|---|---|
| 25 | None (often blocked) |
| 465 | SSL |
| 587 | TLS (recommended) |
Most providers recommend 587 with TLS
Why SMTP Servers Have Multiple IP Addresses
Don’t panic if you see many IPs.
Reasons:
Load balancing
Anti-spam protection
Regional routing
High availability
Best practice: use hostname instead of IP unless your use case demands IP (firewall, whitelist, monitoring).
When Do You Actually Need the SMTP IP Address?
You typically need it for:
Firewall whitelisting
Server-to-server email
SMTP monitoring
Deliverability diagnostics
Email security appliances
VPS email configuration
For email clients (Outlook, Gmail apps), hostname is enough.
Troubleshooting Tips
SMTP IP not responding?
Check if port is blocked
Verify SSL/TLS settings
Test connectivity:
IP keeps changing?
Normal behavior for cloud email providers
Use hostname instead
Final Thoughts
Finding your SMTP server IP address is straightforward once you know the process:
Identify the SMTP hostname
Resolve it using DNS tools or command line
Understand that multiple IPs are normal
Use the IP only when absolutely required
For most users, SMTP hostname + correct port + authentication is all you need.
For advanced users, knowing the IP helps with security, diagnostics, and server control.



