IP Address

raZer

Well-Known Member
Joined
Sep 13, 2005
Messages
375
Reaction score
0
I'm testing out a very basic webserver program I've developed but I can't seem to connect to my machine.

I can connect fine if I open 127.0.0.1 in firefox.
I went to whatismyip.org to get my IP and then when I tried to navigate to my IP (165.165.xxx.xxx) I get taken to the login for my Marconi Router.

When I try type ipconfig into DOS it says my IP is 10.0.0.12. When I try connect to 10.0.0.12 I connect fine just like 127.0.0.1 but others cannot connect to 10.0.0.12

How can I find out my true IP if that is not it and what's wrong?
Thanks,
raZer
 
You have to set up port forwarding on your router first. (Forwarding port 80 traffic from your router to the web server IP)
 
What do you mean 'the web server IP'?
This doesn't sound fun... :(
 
Can you tell me how to setup port forwarding?
 
raZer said:
I'm testing out a very basic webserver program I've developed but I can't seem to connect to my machine.
Sorry, I assumed you wanted to access your web server program from outside your network.

raZer said:
When I try type ipconfig into DOS it says my IP is 10.0.0.12. When I try connect to 10.0.0.12 I connect fine just like 127.0.0.1 but others cannot connect to 10.0.0.12
If you can access 10.0.0.12 yourself then this should work for others on your same network if your network settings on each machine is setup properly. You can also just use http://yourpcname
 
AdLo said:
Sorry, I assumed you wanted to access your web server program from outside your network.
Yes I do want people outside my network to access it.
Sorry for the misunderstanding (x2)
 
Please can you explain what you mean by '"the web server IP"?
 
AdLo said:
The local network IP of the machine that is running your web server program.
OK so in this instance it would be set to like my internal IP address, 10.0.0.12?

Thanks for the link.
On the portforward website it says that you need to setup a static IP before you can setup port forwarding. Is this possible with us having telkom?
 
raZer said:
OK so in this instance it would be set to like my internal IP address, 10.0.0.12?
Yes.
raZer said:
On the portforward website it says that you need to setup a static IP before you can setup port forwarding. Is this possible with us having telkom?
No you don't need a static IP address to setup port forwarding.
You do have a dynamic IP with ADSL. So your external network address (165.*.*.*) will change. So if you want to access your webserver from outside your network you have to use http://165.*.*.* (which will change as Telkom assigns you a new IP at least every 24 hours)
 
AdLo said:
No you don't need a static IP address to setup port forwarding.
OK So I should just ignore that part and continue with the port forwarding setup.
I won't need to change the port-forwarding setup, will I?

I understand that my IP will change, but I'm setting up something that will redirect users to my dnamic ip
 
raZer said:
OK So I should just ignore that part and continue with the port forwarding setup.
I won't need to change the port-forwarding setup, will I?
No, you don't need to specify your external network IP when you setup port forwarding. You only have to specify your local network webserver address and the HTTP port (80). So yes you can setup your router with port forwarding.

I understand that my IP will change, but I'm setting up something that will redirect users to my dnamic ip
You can later setup a dynamic DNS service that you can use so that you don't have to know what your ADSL IP is when you access your web server from outside your network (internet).
If you use such a service you will have to install a compatible program for that DNS service that will run on your machine and that will update the dynamic DNS service website when your ADSL IP changes.

So instead of using http://165.*.*.* you can use http://yourregisteredwebsitename.thedynamicdnsservicewebsiteyouchose.com

You can then also register your own domain e.g. razer.co.za and use the "thedynamicdnsserviceyouchose"'s nameservers when you register it.
Then you can use http://www.razer.co.za instead of http://yourregisteredwebsitename.thedynamicdnsservicewebsiteyouchose.com
 
OK, I have one last question.
Will my internal IP change (from 10.0.0.12)?
 
To sort the confusion out:

1) If you have a router (not a usb modem etc), you need port forwarding
2) Most routers are accessible via a browser
3) Try 10.0.0.1 from IE / FF and see if you can coonect
4) Look for port forwarding / application and games etc
5) In that screen, you will have a block to specify a port, and one to specify a ip address (or a port from - to range).
6) Enter 80 in the port block (or 80 -> 80 if a range)
7) Enter your PC IP in the ip block
8) Save and exit - voila!

(Aside:
My router seems to complain when "doubling back" on itself - in other words, I cannot connect to the PC from within the network when going via the internet (if that makes sense). I then use another PC and a dialup to test.
)

OH - it is best to set your PC (web server) to a static ip (NOTE: the PC is set to static IP NOT the ADSL account - this may be a misunderstanding in a previous post above. Just set your IP to 10.0.0.50 for example. Set gateway and primary DNS to the IP you used in 3) above.
 
Most probably not.


Just be careful when setting up portforwarding that you don't accidently forward the administration port of your router to your "web server's" IP as you will probably not be able to administrate your router after doing this (might either require a poweroff or even a factory reset to be able to use the administration of your router again).
 
Wow, thanks for the clarification Moederloos!

I got to my router thru 10.0.0.2 and the only place I can find port range and ip is in a place called 'Virtual Server Configuration'.

It asks me for 'Public Port Start' 'Public Port End' 'Private Port' 'Port Type' (TCP/UDP) and 'Host IP Address'.

I suppose I must set the Host IP to what I set my PC static IP (eg 10.0.0.50)

I don't understand what I must enter for 'Private Port'. Will this also be 80?

Thanks again!
 
Gangrel said:
Just be careful when setting up portforwarding that you don't accidently forward the administration port of your router to your "web server's" IP
@Gangrel, will forwarding port 80 to my pc (10.0.0.50) do this?
 
raZer said:
@Gangrel, will forwarding port 80 to my pc (10.0.0.50) do this?

nope - routers expect this port to be forwarded. my router listens on port 8080.
 
Thanks guys, I think I understand this now.

Could you please tell me how to setup my computer to have a static IP?

EDIT: Could you also let me know if it's safe to set my computer to 10.0.0.50 as a static IP without giving any other computer connected to my router a static IP?

Thanks
 
AFAIK mine listens on port 80... dlink dsl504t (I do think however that the listening port can be changed, haven't played around with my router too much for a while), so yes forwarding port 80 would most likely prevent access to my router config.

<edit>removed a 'do' that crept in somehow</edit>
 
Last edited:
Top
Sign up to the MyBroadband newsletter
X