MajorGeeks Support Forums

Go Back   MajorGeeks Support Forums > Majorgeeks.Com - Support Forums > Programming
Register FAQ Members List Calendar Casino Mark Forums Read

Programming Place to discuss programming including HTML, Java, C++, MySQL and others.

Reply
 
Thread Tools Display Modes
  #1  
Old 11-04-09, 05:18
Rmelnikas Rmelnikas is offline
Private E-2
 
Join Date: Apr 2009
Location: Melbourne, Australia
Posts: 18   (View Stats)
Thanks: 0
Thanked 0 Times in 0 Posts
Not Ranked  0 score     
Default Batch File Help

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?
Reply With Quote
Sponsored links
  #2  
Old 11-04-09, 06:33
Rmelnikas Rmelnikas is offline
Private E-2
 
Join Date: Apr 2009
Location: Melbourne, Australia
Posts: 18   (View Stats)
Thanks: 0
Thanked 0 Times in 0 Posts
Not Ranked  0 score     
Default Re: Batch File Help

or can i create a program that will do the sane thing??
Reply With Quote
  #3  
Old 11-04-09, 10:40
CaptainQwerty's Avatar
CaptainQwerty CaptainQwerty is offline
Corporal
 
Join Date: Aug 2009
Location: Cumbria, UK
Posts: 224   (View Stats)
Thanks: 42
Thanked 20 Times in 19 Posts
Not Ranked  0 score     
Default Re: Batch File Help

Are you wanting it's external IP or the IP within your home/business network?
__________________
Always Willing to Help with Technical issues!
Volvo 480 Turbo *woooosshhhh*
Reply With Quote
  #4  
Old 11-04-09, 15:30
Rmelnikas Rmelnikas is offline
Private E-2
 
Join Date: Apr 2009
Location: Melbourne, Australia
Posts: 18   (View Stats)
Thanks: 0
Thanked 0 Times in 0 Posts
Not Ranked  0 score     
Default Re: Batch File Help

I am wanting the external ip so i can use it to get the ip for remote access
Reply With Quote
  #5  
Old 11-04-09, 18:20
GermanOne GermanOne is offline
Private First Class
 
Join Date: Feb 2009
Posts: 33   (View Stats)
Thanks: 0
Thanked 3 Times in 3 Posts
Not Ranked  0 score     
Default Re: Batch File Help

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
Reply With Quote
Sponsored links
  #6  
Old 11-05-09, 04:11
CaptainQwerty's Avatar
CaptainQwerty CaptainQwerty is offline
Corporal
 
Join Date: Aug 2009
Location: Cumbria, UK
Posts: 224   (View Stats)
Thanks: 42
Thanked 20 Times in 19 Posts
Not Ranked  0 score     
Default Re: Batch File Help

Quote:
Originally Posted by GermanOne View Post
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
Ipconfig /all

doesn't give you your external IP. Just your IP for your own network.
__________________
Always Willing to Help with Technical issues!
Volvo 480 Turbo *woooosshhhh*
Reply With Quote
  #7  
Old 11-05-09, 04:43
GermanOne GermanOne is offline
Private First Class
 
Join Date: Feb 2009
Posts: 33   (View Stats)
Thanks: 0
Thanked 3 Times in 3 Posts
Not Ranked  0 score     
Default Re: Batch File Help

Quote:
Originally Posted by CaptainQwerty View Post
Ipconfig /all

doesn't give you your external IP. Just your IP for your own network.
Ya, sry. You're right.
Don't know how to figure out the external IP using batch commands.
Reply With Quote
  #8  
Old 11-06-09, 05:15
SWario SWario is offline
Specialist
 
Join Date: Jun 2005
Posts: 325   (View Stats)
Thanks: 8
Thanked 9 Times in 9 Posts
Not Ranked  0 score     
Question Re: Batch File Help

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
batch file medic42 Programming 11 07-22-05 12:40
help with batch file forumuser Programming 4 05-04-05 19:48
Batch File time stamp and appending to the end of a file question2ask Programming 2 06-18-04 08:28
Batch File to remove a space at the end of a charcter in a txt file rcmathen Programming 2 05-14-04 10:04
Batch File AirWarrior001 Software 1 03-06-03 21:10


All times are GMT -5. The time now is 18:05.


MajorGeeks.Com Home Page
| Admin Tools | All In One | Anti-Spyware | Anti-Virus | Appearance | Backup | Benchmarking | BIOS | Browsers | Covert Ops |
Data Recovery | Diagnostics | Drive Cleaners | Drive Utilities | Drivers | Driver Tools Ergonomics | Firewalls | Games | Game Tweaks | Graphics | Input Devices | Internet Tools | Macintosh | Mail Utilities | Memory | Messaging | Monitoring | Multimedia | Networking | Office Tools | Process Management | Processor | Registry | Security | System Info | Toys | Video | Miscellaneous
|

-->
Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management by RedTyger