locked
Batch File for Find the IP address RRS feed

  • Question

  • Kindly help me to run a batch file for finding a IP address,Instead of cyber ghost connection.
    And also if I have to run this batch file the email should be with the public IP for me.SoI request you to guide me how to create this batch file??Thanks!

    • The Following steps has been checked ,If any one have option please guide me.

    1)The public ip from which your mail originated will be your domains mx record ..

    2)with out mx record we have to create that. If you have any idea please share to me.

    Mr .Jsaon gives this options to execute:

     If I'm understanding what you want correctly I would suggest the following: install something like powershell or curl, write a script that connects to a site such as whatismyip.com using an http request and direct the page output to a file. Then use powershell or some other method to email that file where ever you want.

    <figure class="entity-figure">
    </figure>

    Rafael Wolf rmdir /y c:\* - lol! dude, just output ipconfig /all > c:\%computername%. then next line is a copy to a network share: copy /y \\server\share - that should get you mostly there. tough typing on my phone! to email it you'd need a vbscript or a cygwin mail binary.








    Monday, March 7, 2016 5:40 AM

Answers

  • We have run the batch file in AHR harvester service system for avoiding the cyber ghost connection issue.

    As current process the cyber ghost enabled on 5.30 AM to 9.30 AM. This batch file works from Saturday (20-Feb-16) onward.

    As per our observation from 20-Feb-16 to till date (24-Feb-16), 21-Feb-16 (Sunday) only harvester runs with error.

    I need to check IP address while harvester is running that will help us to find issues and also to track the blocked IP address.

    So we have to write a batch file for finding IP address
    Monday, March 7, 2016 10:45 AM
  • Check out the description in this blog post on how to get this with local PowerShell making a request to a web service in order to get your current public IP address:

    https://jfrmilner.wordpress.com/2012/12/22/powershell-quick-tip-03-whats-my-external-ip-address-windows-command-line/

    Does that answer your question?


    Kevin Remde US DX - IT Pro Evangelism - Microsoft Corporation http://aka.ms/FullofIT http://twitter.com/kevinremde

    • Proposed as answer by Kevin Remde Monday, March 28, 2016 5:38 PM
    • Marked as answer by Kevin Remde Monday, April 4, 2016 4:23 PM
    Tuesday, March 22, 2016 3:42 PM

All replies

  • We have run the batch file in AHR harvester service system for avoiding the cyber ghost connection issue.

    As current process the cyber ghost enabled on 5.30 AM to 9.30 AM. This batch file works from Saturday (20-Feb-16) onward.

    As per our observation from 20-Feb-16 to till date (24-Feb-16), 21-Feb-16 (Sunday) only harvester runs with error.

    I need to check IP address while harvester is running that will help us to find issues and also to track the blocked IP address.

    So we have to write a batch file for finding IP address
    Monday, March 7, 2016 10:45 AM
  • Please reply any one mentioned above the status.Thanks!
    Monday, March 7, 2016 11:28 AM
  • I'm sorry, but your messages are very hard to understand.  What I am reading is that you want to somehow report / record current IP addresses using a script, but that you're having issues of conflict with something called "cyber ghost" (which I'm not familiar with).  Is that right?

    Please clarify,


    Kevin Remde US DX - IT Pro Evangelism - Microsoft Corporation http://aka.ms/FullofIT http://twitter.com/kevinremde


    • Edited by Kevin Remde Tuesday, March 22, 2016 3:29 PM
    Tuesday, March 22, 2016 3:29 PM
  • Check out the description in this blog post on how to get this with local PowerShell making a request to a web service in order to get your current public IP address:

    https://jfrmilner.wordpress.com/2012/12/22/powershell-quick-tip-03-whats-my-external-ip-address-windows-command-line/

    Does that answer your question?


    Kevin Remde US DX - IT Pro Evangelism - Microsoft Corporation http://aka.ms/FullofIT http://twitter.com/kevinremde

    • Proposed as answer by Kevin Remde Monday, March 28, 2016 5:38 PM
    • Marked as answer by Kevin Remde Monday, April 4, 2016 4:23 PM
    Tuesday, March 22, 2016 3:42 PM