getmyip

package module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2020 License: MIT Imports: 6 Imported by: 4

README

getmyip go.dev reference

Package getmyip provides methods to get public & outbound IP address of the current node.

Documentation

Overview

Package getmyip returns public and outbound IP addresses of current machine.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOutboundIP

func GetOutboundIP() (net.IP, error)

GetOutboundIP returns preferred outbound IP address of current machine.

func GetPublicIP

func GetPublicIP() (net.IP, error)

GetPublicIP returns public IP address of current machine by calling various online services.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL