01110100110101010101011101100010
Posts tagged ip
Host your Site on your own computer
Dec 29th
These days a large number of people have ADSL connections thanks to BSNL/Airtel they all have a direct internet IP, that means they can host whatevery they wish to host on the internet, It can be blog, site etc on their ip but as far a i know they are all dynamic IP’s so they keep on changing after few hours and its a trouble telling everyone you updated IP, i was trying to solve this problem for one of my friends and the solution is simple i made a simple php file which is hosted on a free php host, he sends a simple get request every 30mins to update his IP which is written to a file and stored on the server (most free hosts does not offer mysql databases, otherwise they could also be used) when someone visits the url of the free host he is redirected to his machine ip, he is running Fedora 9 as the server (but windows can also be used.. which i wont recommend if you are going to tell the world what your IP is) here is the code save it as index.php
<?php
ob_start();
$file = "ip";
if (isset($_GET['pass']) and ($_GET['pass'] == "yourpassword"))
{
$sip=$_SERVER['REMOTE_ADDR'];
unlink('ip');
$fw = fopen($file,'w');
fwrite($fw,$sip);
fclose($fw);
echo "Done";
}
else
{
$fr = fopen($file,'r');
$ip = fgets($fr);
fclose($fr);
header("Location: http://$ip");
}
ob_end_flush();
?>
you can update you IP by going to ” http://something.some-free-host.com/index.php?pass=yourpassword ” from your browser
i will recommend changing yourpassword to something no one can guess and run the following python script to update your IP every 30 mins
import urllib
import time
url = "http://something.some-free-host.com/index.php?pass=yourpassword"
while (1):
urllib.urlopen(url)
print "IP submited at", time.ctime()
time.sleep(1800)
print "submitting again"
PS – if not sites or blogs it will definitely be useful to control your torrents from anywhere, by using their web interfaces, Ktorrent, utorrent and others offers them
Accessing Internet Without use of mac address anywhere
Jul 30th
I have been noticing one thing from a long time that many internet providers ( like ION in manipal ) use mac addresses to limit other people from accessing their network but they dont actually have a proper knowledge of it, so here is the way to make any computer whose mac address in not there with the service provider to use the internet and you dont have to change any mac addresses or anything, well the steps are right below
1) Find any one using Internet on the particular ISP
2) See his connection details like his IP, Subnet, gateway ( or default route ), primary DNS, Secondery DNS
3) Now in your OS set a custom IP say you saw the persons IP as 10.49.3.23 so set your IP as say 10.49.4.203 and enter other details that you found like subnet as 255.255.0.0, gateway or default route as 10.49.0.1, primary DNS as 61.1.128.65 and secondary DNS as 218.248.47.30
4) now connect to the network and enjoy ( you might have to login and there are multiple logins allowed so you can use any of your friends username and password to login )
5) And you might want to check out this if you are on ION
Now to know how it works, if you want to know how it works then continue reading else there is no need to read further
By taking mac addresses they assign you IPs using DHCP based on the mac that they have so if you assign it yourself you have no need to use DHCP and everything works just fine
Enjoy!!!!
Note:- If you get IP conflict change your IP and try again



