Batch File Help

Discussion in 'Software' started by Rmelnikas, Nov 4, 2009.

  1. Rmelnikas

    Rmelnikas Private E-2

    Can someone help me with making a batch file to get a computers ip address and then send that by email or send it some way?
     
  2. Rmelnikas

    Rmelnikas Private E-2

    or can i create a program that will do the sane thing??
     
  3. Are you wanting it's external IP or the IP within your home/business network?
     
  4. Rmelnikas

    Rmelnikas Private E-2

    I am wanting the external ip so i can use it to get the ip for remote access
     
  5. GermanOne

    GermanOne Guest

    IPCONFIG /ALL could help to find the ip address.
    Sending by email is not possible using native batch. Google will help you to find an
    email command line tool

    Regards
    GermanOne
     
  6. Ipconfig /all

    doesn't give you your external IP. Just your IP for your own network.
     
  7. GermanOne

    GermanOne Guest

    Ya, sry. You're right.
    Don't know how to figure out the external IP using batch commands.
     
  8. SWario

    SWario Sergeant

    Doing a tracert to any known address (e.g., www.google.com) will give you the external gateway, but not your specific address. If you can do an IPv6 tracert and do a Roundtrip trace, then you could use the native Windows commands to get it. Unfortunately, you'll have to find a commandline utility that either does this for you in IPv4, or find a commandline way to log in to your router.

    If the computer is not behind a router, and all you need is the computer's IP address, then GermanOne is correct. More information about your situation and what you are trying to accomplish would be helpful.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds