The Wayback Machine - https://web.archive.org/web/20230307170955/https://github.com/maximbilan/SwiftIPConfig
Skip to content

maximbilan/SwiftIPConfig

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

SwiftIPConfig

A lightweight low-level framework that displays all current TCP/IP network configuration values.

How to use

import SwiftIPConfig

/// Local IP address. For example: "192.168.1.34"
let ip = SwiftIPConfig.getIP()

/// Gateway IP. A gateway IP refers to a device on a network which sends local network traffic to other networks. For example: "192.168.1.1"
let gatewayIP = SwiftIPConfig.getGatewayIP()

/// Netmask. Netmasks (or subnet masks) are a shorthand for referring to ranges of consecutive IP addresses in the Internet Protocol. For example: "255.255.255.0"
let netmask = SwiftIPConfig.getNetmask()

Swift Package Manager (SPM)

dependencies: [
    .package(url: "https://github.com/maximbilan/SwiftIPConfig", from: "0.1"))
]

About

A lightweight low-level framework that displays all current TCP/IP network configuration values.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published