Code: Select all
emerge -av bind-tools
dig +short myip.opendns.com @resolver1.opendns.com
most probably yes.Wait my public address will also change?
No it will always remain the same.And by configuring my LOCAL ip statically it won't change after awhile if my isp changes it?
This bit sound like you are behind a NAT controlled by your ISP. Which is hardly surprising. They all do that to save some IPs and claim it's for your security.Also, after the ports are forwarded, the ip I'll give to my friend is my public ip, right? Which to my understanding can't be looked up from the command line, if you don't count curling a website (correct me if I'm wrong).
Yes. NAT. Multiple people using the same public IP address at the same time.They do what exactly to save IPs? Make it so that I can't look up the public IP from the terminal?
And how were you going to achieve that?all I know frankly is that I need to forward the port TCP 55435
Correct, examine whichever card you use to get network access from the Linux computer.jerol wrote:Since I'm not using Ethernet, but Wifi instead, I think it's safe to say that I need to look up the IP of the Wifi card.
It doesn't, but I appreciate you bringing up the potentially relevant detail. I referred to "Linux desktop" to differentiate between the system at which you are sitting and the potentially Linux-based router doing NAT for you.jerol wrote:Also I'd like to clarify that I'm on a laptop, if that matters.
Yes.jerol wrote:[1] Probably safe to share since it starts with 192.168, right?
Yes.jerol wrote:[2] Same thing here, it start with 192.168 so it should be safe to share.
Maybe. For the comparison, you want to check all four octets. 192.168.0.2 and 192.168.0.15 both start with 192.168, but are not "the same" for our purposes.jerol wrote:So the first two are same right because they both start with 192.168?
I don't think so. That sounds more like the DHCP server configuration that controls what addresses the router will offer to your LAN.jerol wrote:Also as a side note, below the IP aswell as the Subnet Mask there's a toggle option for the DHCP server. And below it is the IP pool as well as the lease time. I guess that refers to the router's IP.
OK. By "safe" I mean that some people prefer not to disclose their public IP on an open forum, because it can be used to at least approximate their real world location, as well as being the first step in performing a targeted attack on the user. For now, we can just refer to this address by a fictitious placeholder.jerol wrote:[3] Pretty sure this one is not safe to share, because it doesn't start with any of those that you specified.
Code: Select all
dig +short myip.opendns.com @resolver1.opendns.com
This is possible but it means: Your router is not the edge router into the internet, because 10.x.y.z is a private adress also (like 192.168.x.y and therefore not possible to be routed into the internet; see also: https://en.wikipedia.org/wiki/IPv4#Private_networks ). If your router has really 10.x.y.z on the WAN side, you are either in the middle of a company network OR you have a special Internet-Provider doing nasty business ...jerol wrote:After looking around some more I found the WAN address. That's it, right? It starts with 10.
No, because we specifically want to see what address the router thinks it has. The command you showed will return the public IP address as seen by external sites, after applying any Carrier-Grade NAT. That is useful in some contexts, but we need to understand whether the router knows it has that address, as an indirect method of determining whether the friend can send unsolicited traffic to OP's router.alamahant wrote:This is how to find it from termnal.Code: Select all
dig +short myip.opendns.com @resolver1.opendns.com

Code: Select all
$ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.100.25 netmask 255.255.255.0 broadcast 192.168.100.255
inet6 2a02:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx prefixlen 64 scopeid 0x0<global>
inet6 fe80::fe34:97ff:feb7:d44 prefixlen 64 scopeid 0x20<link>
Code: Select all
___________
| |
| |
----External-+ Router +++++ Your Devices
IP Addr | NAT | 192.168.32.0/24
|___________|