Tag Archives: ip
Change Ubuntu server from DHCP to a static IP address

1. Open interfaces file for editing: sudo nano / etc/network/interfacessudo nano / etc/network/interfaces 2. Change interfaces file contents to: auto…

Get local IP address with C#

public string GetLocalIPAddress() { foreach (NetworkInterface NetI in NetworkInterface.GetAllNetworkInterfaces()) { if (NetI.NetworkInterfaceType == NetworkInterfaceType.Wireless80211 || NetI.NetworkInterfaceType == NetworkInterfaceType.Ethernet && NetI.OperationalStatus…

Get IP address of network adapter in C – Unicode

You will need to include the libraries ws2_32.lib and iphlpapi.lib into your project. GetAdaptersAddresses – retrieves the addresses associated with…

How to get the local IP address(es) using C in Windows

GetIpAddrTable function You have to add the following libraries into your project: ws2_32.lib and iphlpapi.lib. Check this post on how…

WebRTC Vulnerability leaks Real IP Address

WebRTC Vulnerability leaks Real IP Address of VPN User. This security flaw can reveal your real IP address, even if…

Getting visitors country from their IP

geoip_country_code_by_name The geoip_country_code_by_name() function will return the two letter country code corresponding to a hostname or an IP address. —…

Getting visitors country from their IP

geoplugin geoPlugin is a free and easy webmaster resource to provide geolocation technology to your pages. $xml = simplexml_load_file(’http://www.geoplugin.net/xml.gp?ip=’.$visitor_ip_address);  …

IP Forwarding and Routing in Centos 6.6 and OpenVPN

If you want to forward all internet traffic through your openvpn connection and centos server apply the following: nano –w…

Get public/external IP address in C#

1) Create a simple form with one button and one textbox. 2) Code private void button1_Click(object sender, EventArgs e) {…

Resolve hostname to ip without using ping

To resolve a hostname to its IP address without using Ping (ICMP echo request), you can use dig or nslookup….

Next Page