Ok, I have a server set up on a home computer, ethernet cable runs from computer to router, router to modem. Which IP do I use to connect to the server and where do I find this IP?
Printable View
Ok, I have a server set up on a home computer, ethernet cable runs from computer to router, router to modem. Which IP do I use to connect to the server and where do I find this IP?
Your modems IP. Click Here for your modems IP. I'm not sure, but since it's through a router you may need to forward a port to your PC's IP using the admin area of your router. Finding out your PC's IP is as easy as typing "ipconfig" into Command Prompt.
Phreak
If it comes to that, how do I do it?Quote:
Originally Posted by «°°phReAk°°»
That would depend on your router module. Most routers have a login screen that can be access'd by using Inernet Explorer (or any other internet browsing software). Most routers set their IP to 192.168.0.1 and the default name and password are
Username : admin
Password : (Leave it blank)
But you should consult to your user manual or check the companies website for help.
The user manual for my modem, or my router?Quote:
Originally Posted by wiccaan
Also, using the above listed IP, will I be able to connect server and client when both are on the same machine, or both connected to the same router?
The user manual for your router. If you have a LAN (Using NIC cards (10BaseT cards or network cards ... just a better deffinition of them, not 56k or lower, dsl, cable, (Im not sure if ISDN uses nics or not)))
Anyway, using 127.0.0.1 is your computer only, not any other computer. Every computer has the standard IP of 127.0.0.1, which is called the "loop-back" ip. This is to test that your networking is working properly and such.
Anyway, it would be in your Router manual for anything about forwarding ports and stuff.
Depending on your router it shouldnt be to hard to do. I know how to do it with Linksys and Dlink routers so if you have either of them I can help you out with that.
Also, if your on your own network you can use the ip that your router has given to your computers to connect to each other also.
So if you have a router that is on IP 192.168.0.1 (Mostly routers such as Dlink and Linksys)
And you have 3 computers on your network, your router would give them the ips of:
192.168.0.100
192.168.0.101
192.168.0.102
This can be diffrent for each person since you can setup your router diffrent ways to give diffrent IP's. This is the usual default for most routers though.
If you have other people that are not on your router connecting to the server, then you would have to give them your WAN ip and have the port for the server forwarded to the computer that it is on through the router.
If you need help finding your WAN IP check out: www.whatsmyip.org
It will show you the IP that other people not on your network will have to use to connect to your server.
If you need any other help just ask and Ill do my best to help you out.
Ok, thanks.
Since I can't find my user manual I think I will need a bit of help. I entered the default IP into my address bar and accessed my router, then went to a port forwarding screen. It's asking for stuff like IP and service name, how do I do this? Thanks.
Ha, never mind, FINALLY figured it out. After several months of trying to start a connection, it's about time. For anyone wondering, I accessed my router by typing 192.168.0.1 into my browser, using "admin" and "password" for username and password. There I went to the port forwarding tab, and added a custom service. Set the start and end port for the port I was connecting on, and set the IP to the IP of my machine (what you'd get from looking at winsock.localip (192.168.0.x). Then the client connected to my external IP (from www.whatismyip.com) and the router forwarded it to my machine. Thanks for the help.
Glad I could point you in the right direction :D