Get your device ip address, router ip or wifi ssid

Overview

FGRoute

Awesome Version License Platform

FGRoute is written on C and Objective C (includes Swift support), it helps developers to get rid of dealing with WiFi interfaces.

Example



To run the example project, clone the repo, and run `pod install` from the Example directory first.

Requirements

iOS 8 and later.

Installation

CocoaPods

FGRoute is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "FGRoute"

Then, run the following command:

pod install

Manually

  1. Drag and Drop it into your project

  2. Import "FGRoute.h"

  3. You are ready to go!

Usage

With FGRoute you can easily get your ip address, Route, ssid etc.

First of all import header file at the top of your file for ObjC

#import "FGRoute.h"

for Swift

import FGRoute

Full method documentation for Swift

FGRoute.isWifiConnected() // Bolean value to check internet connection

FGRoute.getGatewayIP() //route ip address

FGRoute.getSSID() // Connected wifi name

FGRoute.getBSSID() // Connected wifi BSSID

FGRoute.getSSIDDATA() // Connected wifi SSIDDATA

FGRoute.getIPAddress() // Your local ip address in network

FGRoute.getNetmask() // Connected wifi Netmask

FGRoute.getDestination() // Connected wifi Destination ip address

Full method documentation for ObjC

[FGRoute isWifiConnected]; // Bolean value to check internet connection

[FGRoute getGatewayIP]; //route ip address

[FGRoute getSSID]; // Connected wifi name

[FGRoute getBSSID]; // Connected wifi BSSID

[FGRoute getSSIDDATA]; // Connected wifi SSIDDATA

[FGRoute getIPAddress]; // Your local ip address in network

[FGRoute getNetmask]; // Connected wifi Netmask

[FGRoute getDestination]; // Connected wifi Destination ip address

iOS 13 and later

You need to have "Access WiFi Information" entitlement enabled and you must meet at least one of criteria bellow

  • App with permission to access location
  • Currently enabled VPN app
  • NEHotspotConfiguration

see example for more details

Author

Arthur Sahakyan, [email protected]

License

FGRoute is available under the MIT license. See the LICENSE file for more info.

Comments
  • Transfer String data to wifi enabled device.

    Transfer String data to wifi enabled device.

    Firstly, thank you for this wonderful library.

    I want to transfer data using wifi to connected wifi hotspot device. e.g. Android device has started hotspot, I have connected my iPhone wifi to that Android's hotspot. Now want to pass String data to that Android device.

    Is it possible? How can I achieve this functionality just like Xender.

    Thanks, Rashesh

    question off-topic 
    opened by Rashesh-Bosamiya 4
  • Always getting Error from [FGRoute getIPAddress]

    Always getting Error from [FGRoute getIPAddress]

    Hi Team,

    Always return the Error from [FGRoute getIPAddress] while called the function. Verified in device and simulator as well.

    Please check it

    Thank you for your support in advance.

    IMG_845B13675D21-1

    opened by nikunjazilen 0
  • Add support for macOS

    Add support for macOS

    Hey @Feghal, thanks for maintaining this. Is it possible to add support for macOS? Most of the code looks usable from macOS so I'm wondering if it's as simple as adding macOS as a target to the podspec?

    opened by saket 0
  • Any method/api to get ip address of access point if its gateway ip is 0.0.0.0

    Any method/api to get ip address of access point if its gateway ip is 0.0.0.0

    I am connecting my iPhone with an wifi access point. And that access point returns getway ip as nil by getgateway ip method. As that access point gateway ip was 0.0.0.0 only so how I can get that access point device ip address in my iPhone.

    Can you please suggest any method to get ip address of access point if its gateway ip was 0.0.0.0?

    opened by akshada-systematix 1
  • getting net mask and all addresses in range

    getting net mask and all addresses in range

    Hi, thanks for your great library.

    1. Is it possible to getting net mask or subnet address?
    2. Also is it possible to getting all possible IPs in subnet range?
    question 
    opened by hrsalehi 1
  • iOS 13.3 commands working except for getSSIDDATA() function

    iOS 13.3 commands working except for getSSIDDATA() function

    After installing the 13.3 GM release, I was able to get the FGRoute pod to work fine except for the FGRoute.getSSIDDATA() function as it's causing my application to crash, although I don't need that function.

    bug 
    opened by nneuberger1 3
Releases(1.0.7)
Owner
Arthur Sahakyan
Co Founder and CTO at Atomic S
Arthur Sahakyan
macOS terminal utility for monitoring WiFi link quality

?? wifimon Synopsis wifimon is a wireless device monitoring terminal application that allows you to watch signal, noise and SNR levels as well as devi

Thanos Theodoridis 19 Jun 15, 2022
Manage multi-domain url auto mapping ip address table.

Domainer Multi-domain mapper. This library provides manage multi-domain table. Features Manage multi-domain mapping main domain. Find best domain whic

Felix 6 Apr 4, 2020
Google Places address entry for iOS (Swift)

GooglePlacesAutocomplete A simple Google Places API autocompleting address entry view for iOS devices. There are already a couple of solutions out the

Howard Wilson 271 Sep 26, 2022
Access the native iOS / macOS reminders (get, update, delete) in TiDev / Titanium.

Titanium iOS Reminders API Access the native iOS reminders (get, update, delete) in TiDev / Titanium. Requirements The NSRemindersUsageDescription pri

Hans Knöchel 5 Nov 28, 2021
An easy to integrate Model Based Google Maps Helper (SVHTTPClient, AFNetworking) That lets you Geo Code , Reverse Geocode, Get Directions , Places Autocomplete.

GoogleMapsHelper Read Me in Russian : http://gargo.of.by/googlemapshelper/ A GOOGLE MAPS Helper that help you do multiple tasks like HOW TO USE // usi

Zeeshan Haider 21 Jul 28, 2022
Easy and lightweight network layer for creating different set of network requests like GET, POST, PUT, DELETE customizable with coders conforming to TopLevelDecoder, TopLevelEncoder

Easy and lightweight network layer for creating different set of network requests like GET, POST, PUT, DELETE customizable with coders conforming to TopLevelDecoder, TopLevelEncoder

Igor 2 Sep 16, 2022
A frida tool that capture GET/POST HTTP requests of iOS Swift library 'Alamofire' and disable SSL Pinning.

FridaHookSwiftAlamofire A frida tool that capture GET/POST HTTP requests of iOS Swift library 'Alamofire' and disable SSL Pinning. 中文文档及过程 Features Ca

neilwu 69 Dec 16, 2022
A communication channel from your Mac to your watch.

Stargate A communication channel from your Mac to your watch. Providing a convenient wrapper around MMWormhole and PeerKit, Stargate leverages Multipe

Contentful 135 Jun 29, 2022
StatusBarOverlay will automatically show a "No Internet Connection" bar when your app loses connection, and hide it again. It supports apps which hide the status bar and The Notch

StatusBarOverlay StatusBarOverlay will automatically show a "No Internet Connection" bar when your app loses connection, and hide it again. It support

Idle Hands Apps 160 Nov 2, 2022
Another network wrapper for URLSession. Built to be simple, small and easy to create tests at the network layer of your application.

Another network wrapper for URLSession. Built to be simple, small and easy to create tests at the network layer of your application. Install Carthage

Ronan Rodrigo Nunes 89 Dec 26, 2022
This generic SOAP client allows you to access web services using a your iOS app, Mac OS X app and AppleTV app.

This generic SOAP client allows you to access web services using a your iOS app, Mac OS X app and Apple TV app. With this Framework you can create iPh

Prioregroup.com 479 Nov 22, 2022
Powering your RAC architecture

Intro Most applications out there follow the same pattern: Is T persisted and has not expired? Yes: Use it ✅ No: Fetch T from the network 1. Do we hav

Rui Peres 186 Jun 22, 2022
Setup your class structure in Xcode Interface Builder and save() in Parse Server.

ISParseBind With ISParseBind you can save, update and query PFObjects using the power of Xcode Interface Builder resources. https://www.youtube.com/wa

Weni 10 Mar 28, 2022
iOS client for the Brewfactory project - brew your own beer

BrewMobile iOS client for the Brewfactory project. Read the stories of upgrading BrewMobile to ReactiveCocoa & Swift on AllTheFlow. What is this? App

brewfactory 195 Dec 18, 2022
A remote for your IR devices for iOS and Mac!

Command your TV, Apple TV or Receiver with your Mac/iOS device through iTach. Screenshots On iOS: On Mac (notification center): How to use Buy a iTach

Michael Villar 19 Nov 4, 2022
The fastest iOS app to add a note to your email inbox

Major Key How often are you on the run, or hanging out with friends, only to suddenly think of this really important thing you need to do when you're

Felix Krause 190 Oct 9, 2022
An iOS app for communicating with your clightning node over the lightning network

An iOS app for communicating with your clightning node over the lightning network

William Casarin 18 Dec 14, 2022
A super fast & convenient object mapper tailored for your needs

A super fast & convenient object mapper tailored for your needs. Mapping objects to arrays or dictionaries can be a really cumbersome task, but those

Christoffer Winterkvist 246 Sep 9, 2022
VFNetwork is a protocol-oriented network layer that will help you assemble your requests in just a few steps.

Simple, Fast and Easy. Introduction VFNetwork is a protocol-oriented network layer that will help you assemble your requests in just a few steps. How

Victor Freitas 4 Aug 22, 2022