1
I'm a total noob about TCP/IP, now reading some document (Sams Teach Yourself TCP/IP in 24 hours). However, I still don't get some concepts.
First of all, when I type "what's my ip address" in Google, it shows an address starting with 88.225 something, cool, but when I make this search from another computer in my home, it shows the exact same ip address. So it is probably the router's address for my ISP, right?
So how do I find my computer's (or network adapter's) ip address?
P.S. (a long one)
I need to know this because I want to setup a Unity Masterserver, in my old pc, which has ubuntu server installed. So any help about Ubuntu server - public(or static?) ip address setup is also much appreciated. But again, maybe everything will work if I know the public ip address of that machine.
That machine shows an ip like 192.168.1.36, and I can connect to it from my computer (connected to the same router) but of course not from another location. So I need to know it's "real(?)" ip address.
Thanks !
P.S. 2:
Neither ipconfig
in windows' cmd, nor ifconfig
in Ubuntu Server terminal gives useful information. They just print IP's that start with 255.255, and 192.168..
P.S 3:
There is obviously something so simple, that I don' know, and you assume that I know. But I don't know what it is:) I'll just write my guesses here. Please tell me if they are irrelevant.
- Should I setup a static-ip instead of using DHCP. If so, how?
- Should I somehow "figure out" my IP from that "88.225.." one, combined with my "local ip" ?
Your question is a little confusing. Do you want to set up a server that is reachable from the outside (i.e. "the Internet"), and not just your network? – slhck – 2013-07-27T15:22:21.693
Yes, of course. But that's the side question, really. I need the basics first. How do I know what my reachable-from-outside IP is? – jeff – 2013-07-27T15:23:27.373
http://checkip.dyndns.org/ will tell you your public IP at the moment. Whether or not it belongs to just you is up to your isp. – dbasnett – 2013-07-27T15:26:54.590
1Your "reachable-from-outside" IP is the one with 88.225. It helps to ask about the actual problem you're facing, since that'll give you the better answer. – slhck – 2013-07-27T15:28:21.907
@dbasnett thanks, but it prints the same ip. I just don't get it. So should I request a special - static ip from my ISP ? – jeff – 2013-07-27T15:29:30.700
1
I think your question can be answered by: What is port forwarding and what is it used for?
– slhck – 2013-07-27T15:30:31.543@slhck you are definitely right, but I really don't know what the problem is. So when I type that ip, I will connect to my home network. But which computer in the home network ? Should I do port forwarding and connect to a certain socket ? edit: I saw your new comment. browsing that thread now. Thanks ! – jeff – 2013-07-27T15:30:32.440
Yes, that's precisely what you need to do. Your router will then forward all requests that are made to your public (outside) IP to an internal (192.168…) one, e.g. the Ubuntu server. – slhck – 2013-07-27T15:33:00.367
Ok, thanks @slhck (not for closing my question :) ) But for all the help. I cannot upvote anyone, so thank you all. – jeff – 2013-07-27T15:35:14.540
Get ipv4, ipv6 Address:
ifconfig eth | grep inet
Get default GW (gateway):ip route | grep default
install cURL:sudo apt-get install curl
Get public IP address:curl http://checkip.dyndns.org 2> /dev/null| perl -pe 's,.*Address: (\d+\.\d+\.\d+\.\d+).*,$1,'
– STTR – 2013-07-27T16:18:29.423