Jump to content
Sign in to follow this  
colombeen

Wanted: IP Calculator

Recommended Posts

colombeen

Hi guys

I am looking for a script that does something like the result from this page : http://jodies.de/ipcalc?host=10.54.145.96&mask1=28&mask2=

My issue is that I don't know how to calculate it and I was hoping someone would already have a script like this.

I found one script on the forum that looks to be similar but it doesn't work at all (most lines just throw errors)

Anyone who can help?

Thx

colombeen

 

Share this post


Link to post
Share on other sites
funkey

Could you please show us the link you found.


Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe
trying to produce bigger and better idiots.
So far, the Universe is winning.

Share this post


Link to post
Share on other sites
colombeen
1 hour ago, funkey said:

Could you please show us the link you found.

https://www.autoitscript.com/forum/topic/7248-subnet-and-broadcast-address-calculator/

 

in my case i should be able to provide the same info like on the webpage I provided

  • Address (Host or Network)
  • Netmask (i.e. 24)
  • Netmask for sub/supernet (optional)
Edited by colombeen

Share this post


Link to post
Share on other sites
Chimp

Something like what you are searching is performed by the _LanParameters()  function included in my MultiPing.au3 posted here:

If you call the function with blank parameters, it shows values related to the local network,
or you can pass an IP, a mask in 4 octet format or as a CIDR number notation as well.

For example:

#include 'MultiPing.au3' ; <-- get here: https://www.autoitscript.com/forum/topic/156395-versatile-multi-ping/

_LanParameters('', '', 1) ; shows local lan parameters

_LanParameters('192.168.0.1', 24, 1) ; shows parameters about given address

 

Edited by Chimp
  • Like 1

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.