yeah but all IPs should derive from public ones .. it works
How to make my apache server live or public
No it does not because if you're running a web server then client computers need to contact the server and request a page. And it is impossible to contact a computer by using it's private IP without some kind of tunnel or port forwarding.Tarek wroteyeah but all IPs should derive from public ones .. it works
- Edited
@rolf then how am i able to surf the web, doesn't it involve requesting page meaning i have my own ip.
Thanks for all of you guys for discussing the topic, i really have more
Info on the whole thing.
I will try to use a dns server from no-ip.com and configure apache.
UPDATE: I was able to get a redirect from no-ip.com which tracks my ip address which is good, but i am the only one who can access it.
I am subscribed to a cable company (probably lynx), via a reseller who has his own station, and i think i am using two IPs, the company's and and IP which identifies me on the man's station(something like 172.xxx.xx.xx), however ping.eu shows that my ip begins with 64.xx.x.x which has been static since i got internet.
When i type the address begining with 172. i am able to access my apache server. But if i do that on my phone using 3g, the webpage is not available.
Any ideas?
Thanks for all of you guys for discussing the topic, i really have more
Info on the whole thing.
I will try to use a dns server from no-ip.com and configure apache.
UPDATE: I was able to get a redirect from no-ip.com which tracks my ip address which is good, but i am the only one who can access it.
I am subscribed to a cable company (probably lynx), via a reseller who has his own station, and i think i am using two IPs, the company's and and IP which identifies me on the man's station(something like 172.xxx.xx.xx), however ping.eu shows that my ip begins with 64.xx.x.x which has been static since i got internet.
When i type the address begining with 172. i am able to access my apache server. But if i do that on my phone using 3g, the webpage is not available.
Any ideas?
- Edited
Surfing the web involves you requesting a page from a server, not the opposite. The answer is matched to your private IP using NAT (Network Address Translation) masquerading.NuclearVision wrote@rolf then how am i able to surf the web, doesn't it involve requesting page meaning i have my own ip.
The principle is like that. You have three persons: Toni, Kamal, and Ali (to preserve the confessional balance).
Toni wants to send a message to Ali but he can't. Kamal is the router. The message is "what did you eat today?"
Toni tells Kamal to ask Ali what he ate today. Kamal asks Ali "what did you eat today?". Ali answers "Tabbouleh". Kamal forwards the message "Tabbouleh" to Toni.
This is how Toni communicated with Ali. But if Ali wants to communicate with Toni, he can't, because he doesn't even know that Toni exists.
This is very basically what happens. If it doesn't make sense, then please look it up... NAT and private networks... I am tired and I learned it all by myself so maybe you can too.
Ah BTW, when you try that DNS thing, let me know what happens, I'm curious :)
But don't expect my help. I think I did enough.
Did you use your private IP for that (172.xxx)? Then yes you and anyone on your local network will be the only ones to access your computer.UPDATE: I was able to get a redirect from no-ip.com which tracks my ip address which is good, but i am the only one who can access it.
Yes, how about you listen to me? For example when I said:NuclearVision wroteWhen i type the address begining with 172. i am able to access my apache server. But if i do that on my phone using 3g, the webpage is not available.
Any ideas?
(that is Impossible to contact from the Internet)it is impossible to contact a computer by using it's private IP without some kind of tunnel or port forwarding.
For port forwarding, you need to contact your ISP and have them forward connections to 64.xxx port 80 to your private IP. I strongly doubt they will (or even can) do it.
For tunneling, I described a setup previously. There is also the option of an IPv6 tunnel. A while ago, some companies offered it for free, but I have very little info on that.
My advice is forget it, until you can get a public IP - and even then it's not guaranteed, some ISPs set up firewalls that will block it. I think Ogero DSL (for one) will give you a public IP, but I don't know if it's blocked by a firewall or not.
It needs to be a public IP. Not necessarily a dedicated IP. That's where dynamic DNS comes into play. If you have a public IP, but it's not dedicated (it's dynamic), then you can use the DNS thing.
But from the looks of it you don't even have a public IP.
According to wikipedia, these are the ranges of private IPs:
10.0.0.0 - 10.255.255.255
172.16.0.0 - 172.31.255.255
192.168.0.0 - 192.168.255.255
These are used inside private networks (like yours apparently) and not directly accessible from the Internet. But you can access the internet if you have a private IP, by using NAT. Using this method, several computers can share a public IP.
Why not? Because they're not unique. take the address 172.16.1.12 for example, there could be thousands of computers using this address accross the world. Anyone with a network can use it if he wants to. He doesn't need to register it with a public authority. It's a private address.
But a public IP is unique accross the world. Public IPs are all registered and assigned with a central authority (IANA).
How can you reach a computer which has a private IP if this IP is not unique accross the world? Can you call someone on his phone when 10 other persons have the exact same number?
That is why you need a "public IP".
- Edited
@rolf thanks man, I forgot about it already, what happened with the DNs is that I entered my username and password in the router's DNS configuration page, and now when I reboot my router my private ip automatically changes however no-ip.com redirects my host name to my private ip, so it is tracking it somehow, that's good for dynamic IPs.
I could have finished that, and accomplished it if I had an ogero connection.
You see, every thing has its goods and its bads.
I could have finished that, and accomplished it if I had an ogero connection.
You see, every thing has its goods and its bads.
Probably. I'm glad you read my reply and answered, so it did not goto waste :)
I admit it was a little long, so thanks for reading it...
I admit it was a little long, so thanks for reading it...
@NuclearVision: if you're still interested, let us try something, i'm very familiar with networking issue and problems that you are facing and i can help you, PM me and we can communicate over MSN.
@amkahal It is not possible believe me.
Ok, maybe, but what i trying to do, is to check if you have a real IP. If you are sure about this point, then game over :)NuclearVision wrote@amkahal It is not possible believe me.
- Edited
this is the only solution, you must thank nuclearcat for this, you just need details just ask for them!nuclearcat wroteJust to answer exactly question asked:
Ways are multiple:
1)Ask ISP for real IP. Still you have to pass hassle of forwarding port on router, but good thing to learn how it works.
2)Get real ip over some VPN server. But it will cost you more monthly than shared hosting. You will get real ip directly on your PC, when you will establish VPN connection.
Remember electricity, bandwidth are MUCH more bad(unreliable) and expensive in Lebanon, than outside. So as a proof of concept you can use my suggestion, for anything more serious than putting small files and having fun, consider hosting.
@amkahal how's that possible, I mean to check if I have a real ip.
whatismyip.com then google: whois [the IP address you just got]. That will give you a hint. If it is one of your ISP's IP addresses, then you don't have a real IP. Else, you do.
- Edited
You must find out the IP of your router, not the internal one but the one that is connected to your ISP. In other words the IP that your ISP gave you. If it starts by 172..., 192.168..., 10... then it's not a "real" one.NuclearVision wrote@amkahal how's that possible, I mean to check if I have a real ip.
If you have a "real IP" then the result will be the same because your IP will obviously be registered to your ISP. No?yasamoka wrotewhatismyip.com then google: whois [the IP address you just got]. That will give you a hint. If it is one of your ISP's IP addresses, then you don't have a real IP. Else, you do.
I already WHOISed using ping.eu got nothing.
what is the range of you IP, nuclearvision ?
178.xx.xxx.xxx
No. Not the same, because if I didn't have a real IP, the IP address shown would be one of the IP addresses of my ISP itself. I will talk about this below.rolf wroteIf you have a "real IP" then the result will be the same because your IP will obviously be registered to your ISP. No?
@nuclearvision: To verify whether this IP address is your ISP's or your own, you can either do what rolf suggested, check your IP address in the modem.
This is what I forgot to say, however:
Once you check that IP address, you can compare it to the IP address on whatismyip.com. If they are the same then you have a real IP. If not, then you have an internal IP.
In that case, to further verify, ping the IP address shown in whatismyip.com. If you get <=1ms, then this IP address is obviously reachable by your internal network directly. If you get, let's say, 40ms, then that is your ISP's IP address.
A traceroute to an external IP address or DNS hostname, such as www.google.com, would show you your ISP's IP address in the hops after your internal network IPs.
- Edited
If you have a real IP, then whatismyip.com it will show your IP. If you don't then it will show the IP that your ISP uses for NAT. In both cases, if you whois that IP, you will get the name of your ISP, normally.No. Not the same, because if I didn't have a real IP, the IP address shown would be one of the IP addresses of my ISP itself. I will talk about this below.rolf wroteIf you have a "real IP" then the result will be the same because your IP will obviously be registered to your ISP. No?
True. If you can login to your router, then your IP should be somewhere there.This is what I forgot to say, however:
Once you check that IP address, you can compare it to the IP address on whatismyip.com. If they are the same then you have a real IP. If not, then you have an internal IP.
Could work...In that case, to further verify, ping the IP address shown in whatismyip.com. If you get <=1ms, then this IP address is obviously reachable by your internal network directly. If you get, let's say, 40ms, then that is your ISP's IP address.
(smart trick, btw)
Not necessarily. It will show the IP address on the interface that is connected to your network, not the one on the interface that is connected to the internet, which is what whatismyip.com and the internet will see. It doesn't have to be the same IP.A traceroute to an external IP address or DNS hostname, such as www.google.com, would show you your ISP's IP address in the hops after your internal network IPs.
True, it doesn't have to be. It would be one of the IP addresses in the pool of the IP addresses that the ISP uses to establish connections with external IP addresses, right?rolf wroteNot necessarily. It will show the IP address on the interface that is connected to your network, not the one on the interface that is connected to the internet, which is what whatismyip.com and the internet will see. It doesn't have to be the same IP.
My ip shown in the router is different from the shown on whatismyip.
So no real ip.
I also pinged my isp's Address, it gave me an average of 50milliseconds.
I think that's it, I will ask my reseller abou real ip, I think he does not deal with it.
By the way, my ISP is lynx somehow.
So no real ip.
I also pinged my isp's Address, it gave me an average of 50milliseconds.
I think that's it, I will ask my reseller abou real ip, I think he does not deal with it.
By the way, my ISP is lynx somehow.