|
-
Apr 3rd, 2005, 07:24 PM
#1
Thread Starter
Fanatic Member
Winsock - Connecting to server. [Resolved]
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?
Last edited by Nove; Apr 7th, 2005 at 09:22 PM.
-
Apr 3rd, 2005, 09:21 PM
#2
Re: Winsock - Connecting to server.
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
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Apr 3rd, 2005, 10:12 PM
#3
Thread Starter
Fanatic Member
Re: Winsock - Connecting to server.
 Originally Posted by «°°phReAk°°»
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. Phreak
If it comes to that, how do I do it?
-
Apr 3rd, 2005, 10:31 PM
#4
Hyperactive Member
Re: Winsock - Connecting to server.
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.
If my post was helpful please rate it 
-
Apr 5th, 2005, 05:10 PM
#5
Thread Starter
Fanatic Member
Re: Winsock - Connecting to server.
 Originally Posted by wiccaan
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?
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?
-
Apr 5th, 2005, 10:22 PM
#6
Hyperactive Member
Re: Winsock - Connecting to server.
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.
If my post was helpful please rate it 
-
Apr 6th, 2005, 04:54 PM
#7
Thread Starter
Fanatic Member
Re: Winsock - Connecting to server.
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.
-
Apr 7th, 2005, 09:21 PM
#8
Thread Starter
Fanatic Member
Re: Winsock - Connecting to server.
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.
-
Apr 8th, 2005, 11:45 PM
#9
Hyperactive Member
Re: Winsock - Connecting to server. [Resolved]
Glad I could point you in the right direction
If my post was helpful please rate it 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|