Toggle Side Panel

  • Blogs
  • Consultants
    • Salesforce Product Expertise
      • Top Salesforce ConsultantsTop Salesforce Consultants
      • Marketing Cloud ConsultantsMarketing Cloud Consultants
      • Service Cloud ConsultantsService Cloud Consultants
      • Experience Cloud ConsultantsExperience Cloud Consultants
      • Analytics Cloud ConsultantsAnalytics Cloud Consultants
    • Salesforce Industry Expertise
      • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
      • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
      • Health Cloud ConsultantsHealth Cloud Consultants
      • Commerce Cloud ConsultantsCommerce Cloud Consultants
      • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
    • Salesforce Experts by Location
      • USATop Salesforce Consultants in USA
      • IndiaTop Salesforce Consultants in India
      • AustraliaTop Salesforce Consultants in Australia
      • United KingdomTop Salesforce Consultants in UK
      • CanadaTop Salesforce Consultants in Canada
  • Webinars
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Blogs
    • Consultants
      • Salesforce Product Expertise
        • Top Salesforce ConsultantsTop Salesforce Consultants
        • Marketing Cloud ConsultantsMarketing Cloud Consultants
        • Service Cloud ConsultantsService Cloud Consultants
        • Experience Cloud ConsultantsExperience Cloud Consultants
        • Analytics Cloud ConsultantsAnalytics Cloud Consultants
      • Salesforce Industry Expertise
        • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
        • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
        • Health Cloud ConsultantsHealth Cloud Consultants
        • Commerce Cloud ConsultantsCommerce Cloud Consultants
        • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
      • Salesforce Experts by Location
        • USATop Salesforce Consultants in USA
        • IndiaTop Salesforce Consultants in India
        • AustraliaTop Salesforce Consultants in Australia
        • United KingdomTop Salesforce Consultants in UK
        • CanadaTop Salesforce Consultants in Canada
    • Webinars
    • Contact Us
    • Discussions
    Close search

    Activity › Forums › Salesforce® Discussions › How do I get the IP of the Salesforce Instance from which the callout is to be performed?

    Tagged: Account, API Callout, Http, IP Address, Salesforce Apex, Salesforce SOQL

    • Salesforce® Discussions

      How do I get the IP of the Salesforce Instance from which the callout is to be performed?

      Posted by Anup on May 10, 2016 at 6:49 AM

      How do I get the IP of the Salesforce Instance from which the callout is to be performed? As I need to have the IP populated in a request so that the external service could validate the request?

       

      Gourav replied 10 years, 4 months ago 2 Members · 1 Reply
      • Account
      • API Callout
      • Http
      • IP Address
      • Salesforce Apex
      • Salesforce SOQL
    • 1 Reply
    • Gourav

      Member
      May 24, 2016 at 10:57 AM

      The Salesforce IP addresses can change, and you should use Salesforce IP Address to whitelist as a starting point.

      With that taken into account, you can use an existing web service to tell you what the IP address is (for that request at least).

      HttpRequest req = new HttpRequest();
      req.setEndpoint('http://icanhazip.com/');
      req.setMethod('GET');
      Http httpReq = new Http();
      HttpResponse res = httpReq.send(req);
      System.debug(res.getBody());

      Log output from na5.

      10:09:49:424 USER_DEBUG [6]|DEBUG|182.50.78.8
      Don't forget to add http://icanhazip.com as a remote site.

    Log In to reply.

    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me

    Popular Salesforce Blogs

    salesforce einstein

    Salesforce Einstein: An Overview

    Blog in Others, Salesforce Einstein

    Salesforce Einstein is a very important feature of Salesforce CRM that uses artificial intelligence tools. Artificial Intelligence is a part of machine learning, it helps…

    Artificial Intelligence, Automated Lead Scoring, Business Processes, Commerce Cloud Einstein, Customer Satisfaction
    Manish Apr 22, 2020
    7,141  Views
    quote to cash

    10 Ways to Enhance Your Buyer Experience with Quote-to-Cash Solutions | Salesforce Guide

    Blog in Sales, Salesforce Products

    When you have hundreds or thousands of leads to respond to in a single day, errors happen and you get overwhelmed. Right from sending the…

    Apttus Technology Tools, billing, Billing Management, Business Process, Buyer Experience
    CommerceCX Jun 30, 2021
    2,073  Views

    Top 5 Ways a Salesforce CRM Can Help in Building Relationship with Clients

    Blog in Salesforce

    Customer Relation Management or CRM is absolutely helpful in increasing your business and generating higher revenues every day. To ensure that your business venture receives…

    Build Sustainable Relationships, Building and Maintaining Better Relationships, Building Relationship, Business, Business Empire
    360 Degree May 10, 2021
    2,304  Views

    Popular Salesforce Videos

    Salesforce Einstein Keynote: Meet Your Smart CRM Assistant

    Salesforce Einstein Keynote: Meet Your Smart CRM Assistant

    Video in Salesforce Einstein

    Salesforce Einstein is your smart CRM assistant, making your employees smarter and your customers happier. With Einstein, everyone has an AI-powered assistant to help them…

    Artificial Intelligence, Sales Cloud Einstein, Salesforce CRM, Salesforce Keynote
    Pooja Oct 1, 2018
    1,733  Views
    Lightning Flow – Release Readiness LIVE, Summer '20 | Salesforce

    Lightning Flow – Release Readiness LIVE, Summer '20 | Salesforce

    Video in Lightning

    Watch this amazing video & join the Product Managers to see how you can build flows and processes more efficiently with enhancements to Flow Builder,…

    Salesforce Lightning, salesforce, Process Builder, Salesforce Flow, Salesforce Video
    Jogender Aug 4, 2020
    1,465  Views
    See how fast and easy you can make intuitive Salesforce solutions to your users with Cauzali.

    See how fast and easy you can make intuitive Salesforce solutions to your users with Cauzali.

    Video in AppExchange

    Instead of coding or very complex flows use Cauzali. Place your Cauzali model everywhere in Salesforce including in the middle of a Flow. Price between…

    Salesforce Lightning, salesforce, Salesforce Flow, Salesforce Video, lightning
    Tom Bo May 15, 2020
    2,174  Views
    Footer Forcetalks logo

    support@forcetalks.com

    • twitterx

    Quick Links

    Advertise with Us

    Salesforce® Articles

    Dreamforce 2023

    Top Salesforce® Bloggers 2023

    Top Salesforce Consultants

    Get Listed

    Company

    Contact Us

    About Us

    Privacy Policy

    Terms & Conditions

    InsightHub

    Salesforce Blogs

    Salesforce Videos

    Salesforce Groups

    Salesforce Jobs

    © 2026 - Forcetalks ● All Rights Reserved

    Salesforce® is a trademark of Salesforce® Inc. No claim is made to the exclusive right to use “Salesforce”. Any services offered within the Forcetalks website/app are not sponsored or endorsed by Salesforce®.

    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.