Posts marked with "IP" in tags

Getting IP Address of Your Friend Through Chat

It’s awesome to get into the depth of the network, especially when it’s the internet. An IP address can get you to a person far away from your home. It will make you mind blown when you dig deeper into the internet network. As you may have read, netstat -an command gave you the IP address of user through Facebook chat. But, this works no more. But, there are still ways to do this.... [READ MORE]

Default TTL (Time To Live) Values of Different OS

TTL (Time To Live) is a timer value included in packets sent over networks that tells the recipient how long to hold or use the packet before discarding and expiring the data (packet). TTL values are different for different Operating Systems. So, you can determine the OS based on the TTL value. You can get the TTL value by pinging an address. Here is the output got by pinging “subinsb.com” on my system :... [READ MORE]

Create A Contact Form In PHP With Mailgun

Contact forms make it easy for the visitors of your site to contact you. Contact forms are available in various CM systems, but if you are creating your own site, you have to create the contact form yourself. The messages thus sent by the users have to be stored in databases and you have to constantly check the database for new messages. To overcome this problem, it’s better to directly send the messages to your inbox.... [READ MORE]

How To Change Your Country By Using Proxy in Ubuntu ?

There are certain restrictions on some sites such as Country Restriction. Mostly there are sites just for US citizens. For Example The most 99 cent domain offers from GoDaddy is only available to US citizens. They check the country by IP Address. I’m going to tell you how to Change your Country by changing the IP address using a PROXY. This is explained to work on Ubuntu, you can also use this method in Windows & Others but in a different way.... [READ MORE]

Setting up Google DNS in Ubuntu

Google‘s DNS service is spreading rapidly. It’s time for you to use it. I used it and noticed some great speed changes even though my internet is just a dial up connection. Here is how to set up Google‘s DNS on your Ubuntu Linux. Open Network Settings (network-admin) by going to System -> Preferences -> Network Connections. Go to your default net connection and click on Edit button. You will get a window like below : Change the Method option to Automatic (PPP) addresses only.... [READ MORE]

How to access a remote computer using SSH in Ubuntu Linux

SSH is the easiest way to access a remote computer not in graphical interface but in character interface. To access a remote computer you should need the computer’s ip address & a username of the computer. Now connect using the credentials you now have. For Example: ssh [email protected] Type the password of the user and hit enter. You now entered the user’s system. You can logout, shut down the computer if you ssh root user.... [READ MORE]

The best method to find client’s IP Address in PHP.

This simple function will help you to find the client’s IP. You could use $_SERVER[‘REMOTE_ADDR’] , but this method will not returns the actual IP address. To get the real IP address use this method. function getUserIpAddr(){     if (!empty($_SERVER[‘HTTP_CLIENT_IP’])){         return $_SERVER[‘HTTP_CLIENT_IP’];     }else if (!empty($_SERVER[‘HTTP_X_FORWARDED_FOR’])){         $ite=explode(‘,’,$_SERVER[‘HTTP_X_FORWARDED_FOR’]); return str_replace(" ",",$ite[0]);     }else{         return $_SERVER[‘REMOTE_ADDR’];     }... [READ MORE]

Finding Client’s IP address, Country, State, City using NetIP.de api in PHP

If you want to get client’s IP address you will use $_SERVER[‘REMOTE_ADDR’] function in PHP. But you will not get the real IP address of the client. To get the real IP address You can use the method I used. Also With this method you can also find the City, State, Country client’s in. The code is pretty simple. With the help of NetIP.de it was pretty easy. $response=@file_get_contents(‘http://www.netip.de’);if (empty($response)){throw new InvalidArgumentException("Error contacting Geo-IP-Server"... [READ MORE]

Follow/Subscribe

Telegram 

Mastodon  Twitter

GitHub GitLab

Subdomains

Demos  Lab

Past

This blog was once on WordPress. Now a static site. See source code on

GitLab