PDA

View Full Version : IP Address's?



Zephik
01-03-2007, 10:04 PM
What is the difference between the two? How do I find out what mine are?

69.28.42.**

192.168.1.***

On my router it gives me the second one for port forwarding. But when I google what my IP address is it gives me the first one.

b4i7
01-03-2007, 10:49 PM
i believe the second is your ip within the network

SgtM
01-03-2007, 11:05 PM
detailed explanation with screen shots in a minute...

SgtM
01-03-2007, 11:39 PM
Open your favorite soda.. this is gonna take a minute or two.

69.28.42.x is your WAN IP address. Basically, it's the address that the outside world can see. (i.e. cable modem, DSL modem)

192.168.x.x is your LAN IP address. It's the address on YOUR local network within your home/office. (i.e. PC, laptop, print server, network printer, whatever is on your network behind the router)

To find your WAN IP address (69.28.42.x), go to www.whatismyip.com.
http://i47.photobucket.com/albums/f186/sgtm_usmc/WAN-IP.jpg
To find your LAN IP address (192.168.x.x) to to Start --> Run, then type in cmd to get to a command prompt. Then type in ipconfig. The output will be the IP address of your computer.
http://i47.photobucket.com/albums/f186/sgtm_usmc/ipconfig.jpg
You want to do port forwarding? What application will you be using? Remote Desktop (tcp port 3389), PC Anywhere (tcp ports 5631 and 5632)? Let me know I'll look up the port numbers if you don't already know them.
http://i47.photobucket.com/albums/f186/sgtm_usmc/port-forwarding.jpg
The biggest thing to remember is to give your computer (or whatever device you're opening up the port for) a static IP address on your LAN (the 192.168.x.x). More often than not, your router uses only a few DHCP (dynamic host control protocol) addresses. For example, on my home network, I have it set up to start giving out addresses at 192.168.250.100. Now, when I want to set up a computer with a static address, I just give it anything below the 100 range like 192.168.250.99. With this method, you won't run into IP address conflicts.

I touched briefly on using remote desktop. Say you want to remote to multiple PC's. You can do this with port forwarding on the router, but windows defaults to port 3389. How do we get around this? A simple registry edit..
***** WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Use Registry Editor at your own risk.

You can use the Remote Desktop feature in Windows XP Professional to connect to your computer from another, remote computer. WARNING: The Remote Assistance feature in Windows XP may not work properly if you change the listening port. To change the port that Remote Desktop listens on:

Start Registry Editor Start --> Run then type in regedit and hit enter.

Locate the following key in the registry:

HKEY_LOCAL_MACHINE/System/CurrentControlSet/Control/TerminalServer/WinStations/RDP-Tcp and then the key for PortNumber on the right
http://i47.photobucket.com/albums/f186/sgtm_usmc/regedit.jpg
On the Edit menu, click Modify, click Decimal, type the new port number, and then click OK. Quit Registry Editor.
http://i47.photobucket.com/albums/f186/sgtm_usmc/port-number.jpg
NOTE: When you try to connect to this computer by using the Remote Desktop connection, you must specify the port number i.e. 192.168.x.x:33389. you only have to worry about this if you are going to access multiple computers via remote desktop from the outside world. If you're using remote desktop on your LAN only, then you can leave the port number at the standard 3389 and just type the LAN IP address i.e. 192.168.x.x
*********
So, now you have your port forwarding, static IP addresses working and everything is going smooth. Don't forget that unless you are paying your ISP for a static IP address, it will change because it uses DHCP. So anytime you want to access your PC from the outside world, you will have to make sure you know what your WAN IP address is.

I think that about covers it. If anyone notices anything I missed, please feel free to add.

nil8
01-04-2007, 12:06 AM
Good job sgtm. There's also the same idea with VNC or other remote desktop software.

rep+

Zephik
01-04-2007, 12:07 AM
Nice! Thanks man, everything is now as smooth as a lubed hippo.

+1rep!

SgtM
01-04-2007, 12:17 AM
Good job sgtm. There's also the same idea with VNC or other remote desktop software.

rep+


Nice! Thanks man, everything is now as smooth as a lubed hippo.

+1rep!

Glad you all liked the info. It all depends on the ports you need to open. VNC, PCAnywhere, goto meeting, goto mypc, game servers.. Obviously, I've done this a few times, so if anyone ever needs help, don't be afraid to hit me up. I'm not against giving you a call and walking you through it either if you want. Best time for me is after 9:00 pm Eastern (the kids are in bed at that time).

nil8
01-04-2007, 02:20 AM
Yea, it's NAT port fowarding. Not difficult on most home based routers once you understand what you're doing.

I didn't know about the reg tweak though. I'll keep it in mind. Do you think that would screw up SMS?

DaveW
01-04-2007, 08:44 AM
+Rep for sgtm.

-Dave

gaz_the_chav
01-04-2007, 10:14 AM
+rep been wanting to know this stuff for ages!

-gaz

SgtM
01-04-2007, 10:15 AM
Yea, it's NAT port fowarding. Not difficult on most home based routers once you understand what you're doing.

I didn't know about the reg tweak though. I'll keep it in mind. Do you think that would screw up SMS?

It shouldn't have any affect on SMS. Then again, if it does, port numbers can always be changed.

nil8
01-04-2007, 10:25 AM
That's true. I guess it depends on how you use SMS. One method of remote desktop uses rdp, one doesn't.