Skip to content

[Question] How to find usable IPs? #67

@scorpio1441

Description

@scorpio1441
                var range = IPAddressRange.Parse("192.168.1.100/255.255.255.0");
                IPStartBox.Text = range.Begin.ToString(); // returns 192.168.1.0
                IPEndBox.Text = range.End.ToString(); // 192.168.1.255

I need to return first and last usable IP, which should be 192.168.1.1 and 192.168.1.254.
Is this possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions