Web site ip address

blue-eye-boy

Expert Member
Joined
Jul 25, 2006
Messages
2,973
Reaction score
5
Hi, I use routesentry, and saw that some local site still go though my international account. So how do I for first get a site's ip address to put into the localroutes file. And I saw that if I open mybroadband, it looks like it first use a bit of the international account then local account. I saw it on the 2 little pc-icons in the taskbar. Why is that?
 
And I saw that if I open mybroadband, it looks like it first use a bit of the international account then local account. I saw it on the 2 little pc-icons in the taskbar. Why is that?

More than likely for Google Analytics.
 
Okay, tried it with a site. The ip is : 196.7.147.18
So I go to localroutes.dat file, open it, and I saw that all the ip addresses there is in the following format:216.236.176.0/255.255.240.0 and 41.203.0.0,255.255.224.0

So I suppose the first part of that format is the ip address like I got it:(196.7.147.18), But how do I know what the second part is? And inbetween the first part and the second part is a /
but I saw some is a , (comma). What must it be?
 
The thing after the comma is a mask to allow you to specify a group of ip addresses.
Far too simply put :
- Ends with 255 : You can assume that that means Exactly, so the previous IP Address is exactly the ip address specified.
- Ends with 0 : You can assume that that means All, so the previous IP Address is actually a mask where the last digit is ignored.

i.e.
196.7.147.18, 255.255.255.255 = 196.7.147.18
and
196.7.147.18, 255.255.255.0 = 196.7.147.1, 196.7.147.2, 196.7.147.3, 196.7.147.4, 196.7.147.5, 196.7.147.6, ... 196.7.147.254, 196.7.147.255

Cool?
 
The thing after the comma is a mask to allow you to specify a group of ip addresses.
Far too simply put :
- Ends with 255 : You can assume that that means Exactly, so the previous IP Address is exactly the ip address specified.
- Ends with 0 : You can assume that that means All, so the previous IP Address is actually a mask where the last digit is ignored.

i.e.
196.7.147.18, 255.255.255.255 = 196.7.147.18
and
196.7.147.18, 255.255.255.0 = 196.7.147.1, 196.7.147.2, 196.7.147.3, 196.7.147.4, 196.7.147.5, 196.7.147.6, ... 196.7.147.254, 196.7.147.255

Cool?
So say I got this ip address from a site: 196.4.0.0, can I just add 255.255.255.255?, or can I add 255.255.255.0 too?
I took that ip address from the localroutes.dat file, but whats different now is that the ip address was this: 196.4.0.0/255.255.240.0
So why is the second last part the 240?

Also please, I got new ip address update from www.countryipblocks.net/index.php , and paste it all in a text document. How do I get that normal text document to be a .dat file which routesentry uses?
 
1 : Using 196.4.0.0, 255.255.255.255 would mean that only the IP Address 196.4.0.0 would be routed. Registrars don't usually use the 0 in an IP Address, so the 0 is usually used when specifying a mask. So, with the IP Address 196.4.0.0, the last 2 digits are zero's probably because the last 2 digits should be masked.
2 : You can use the mask 255.255.255.0, but it would not really make sense ... I doubt there's a range of IP Addresses from 196.4.0.1 to 196.4.0.255, I think the intention is to mask off the 0 as well, hence the 255.255.240.0 as the mask.

As to why it's 240 instead of zero ... do a google search on "subnet calculator" and take it from there ...
 
Okay, Please guide me here. I dont get this one right: www.outdoorphoto.co.za , it's ip address is 85.10.215.48. So I tried a couple of calculators, each give another outcome. So I tried this one too, http://www.subnet-calculator.com/subnet.php?net_class=C . What settings must I change there to get the correct subnet? Sorry but I'm a complete noob with this things.
Outdoorphoto keeps loading on the international.
 
Here is a goooooooooood "lesson" : Scroll down to Subnetting lesson [ http://subnettingmadeeasy.blogspot.com/2007/12/how-to-calculate-wildcard-mask.html ]

But, if you just want to add one address, put the address in and mask it with 255.255.255.255.

If you want to put 255 addresses in then put one address in and mask it with 255.255.255.0.

If you want to get more complicated than that, then you're going to have to understand the whole subnetting masking thing.

I just copy and paste.
 
But, if you just want to add one address, put the address in and mask it with 255.255.255.255.

If you want to put 255 addresses in then put one address in and mask it with 255.255.255.0.

I just copy and paste.
Okay, say I paste the ip address 85.10.215.48, and 255.255.255.0, then all the ip address up to 255 is covered? But why wont outdoorphoto work like that?
 
I know I'm annoying, but most of the sites I open uses the international. So I'll be so glad to get this right. And I tried to add just 255.255.255.255 to the ip, but that wont help. Please?
 
I added 2 lines to my localroutes.dat:
80.87.68.0,255.255.255.0
80.87.69.0,255.255.255.0
85.10.215.48,255.255.255.255

129.227.206.0,255.255.255.0
Then I closed Routesentry (Closed the 2 connection connected) and re-opened routesentry and clicked on Set Up Routes Now, and then opended a command prompt and typed :
route print | more
I pressed space to get to page 2 of the output, and listed there was my 2 added entries:
80.87.76.0 255.255.254.0 165.146.136.1 165.146.230.120 2
85.10.215.48 255.255.255.255 165.146.136.1 165.146.230.120 2
I then tried to open www.outdoorphoto.co.za and got the error 403 : Forbidden, which is an error from AXXESS (my ISP) saying that the local-only account is not allowed to access that site.

i.e. Axxess www.outdoorphoto.co.za is actually not hosted in South Africa.

I then removed 85.10.215.48,255.255.255.255 from the localroutes.dat file, closed routesentry, closed the 2 connections, then re-opened routesentry.

Then I opened a command prompt and typed in:
tracert www.outdoorphoto.co.za

And got:

Tracing route to www.outdoorphoto.co.za [85.10.215.48]
over a maximum of 30 hops:

1 38 ms 37 ms 39 ms dsl-242-64-01.telkomadsl.co.za [41.242.64.1]
2 * * * Request timed out.
3 * * * Request timed out.
4 52 ms 49 ms 53 ms 196.43.10.130
5 53 ms 48 ms 48 ms 196.43.33.5
6 402 ms 397 ms 392 ms 196.43.18.206
7 408 ms 399 ms 395 ms gi1-5.ccr01.jfk07.atlas.cogentco.com [38.112.18.41]
8 429 ms 396 ms 397 ms te8-2.ccr02.jfk02.atlas.cogentco.com [154.54.7.29]
9 382 ms 377 ms 378 ms te3-3.ccr02.dca01.atlas.cogentco.com [154.54.5.246]
10 371 ms 654 ms 417 ms te7-3.mpd01.dca02.atlas.cogentco.com [154.54.6.26]
11 381 ms 393 ms 387 ms vl3497.mpd01.iad01.atlas.cogentco.com [154.54.5.66]
12 387 ms 387 ms 389 ms lambdanet.iad01.atlas.cogentco.com [154.54.11.162]
13 464 ms 447 ms 454 ms FRA-3-eth0-403.de.lambdanet.net [81.209.156.9]
14 494 ms 495 ms 494 ms NUE-2-eth100.de.lambdanet.net [217.71.96.74]
15 490 ms 493 ms 502 ms lambdanet-gw.hetzner.de [213.239.242.214]
16 520 ms 499 ms 503 ms hos-bb2.juniper1.rz4.hetzner.de [213.239.240.140]
17 514 ms 482 ms 482 ms dedi448.nur4.host-h.net [85.10.215.48]

Trace complete.

Which shows that the server is actually hosted @ hetzner in denmark (De).

So, in short, adding www.outdoorphoto.co.za to the localroutes.dat file will not produce the desired results, because www.outdoorphoto.co.za is not hosted locally.
AND - if you do not close the RouteSentry and the 2 connections, then your routing table will not be updated when you change localroutes.dat.
:D
 
When it comes to Linux there is a way to check where a server is hosted. Firefox has an extension called ShowIP. You can than copy the IP and run a whois <IP> and it will give you details of where its hosted.

Yo can also right click on the IP and choose dnsstuff whois.
 
Okay thanks. So in simple words now, if I want to add any website to that localroutes.dat file, I just add 255.255.255.255 to the ip, and it will work? I'll check first if that site then opens with the local only account, before adding it to that file. Hope it works.
 
Top
Sign up to the MyBroadband newsletter
X