How to use the internal-ip.v4.sync function in internal-ip

To help you get started, we’ve selected a few internal-ip examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Rafostar / gnome-shell-extension-cast-to-tv / node_scripts / utils / local-ip.js View on Github external
var internalIp = require('internal-ip').v4;
var ip = internalIp.sync();
if(ip) console.log(ip);
github Rafostar / gnome-shell-extension-cast-to-tv / node_scripts / chromecast.js View on Github external
function initChromecast()
{
	var mimeType = 'video/*';
	var trackIds = null;
	var mediaTracks = null;
	var ip = internalIp.sync();
	var port = bridge.config.listeningPort;
	var sessionID = makeID();

	initType = 'BUFFERED';

	switch(bridge.selection.streamType)
	{
		case 'VIDEO':
			break;
		case 'MUSIC':
			if(bridge.config.musicVisualizer) initType = 'LIVE';
			else mimeType = 'audio/*';
			break;
		case 'PICTURE':
			mimeType = 'image/*';
			break;

internal-ip

Get your internal IP address

MIT
Latest version published 1 year ago

Package Health Score

70 / 100
Full package analysis