Jump to content

Wanted: IP Calculator


Recommended Posts

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

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

 

image.jpeg.9f1a974c98e9f77d824b358729b089b0.jpeg Chimp

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...