Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
I am attempting to use a service like dyndns so that I can access my Debian (woody) box from the outside world. To do so, I need to find out what my external ip address is. I thought running
#ifconfig
would give me this info but all I can see is the static ip I have assigned it for my LAN, 192.168.1.161.
I have a cable internet connection that uses dhcp. The connection hooks directly to a router with an internal ip of 192.168.1.1, which I set as the gateway for my Debian box. Please let me know if more info is needed about my configuration.
look in the routers setup for the public ip ! in that setup it is the router that holds the lease with your isp.
__________________
~Mike ~~~ Forum Rules
Testing? What's that? If it compiles, it is good, if it boots up, it is perfect. ~ Linus Torvalds http://loft306.org
But one way to do it is using trace route to some external host and looking in the list returned by trace route for the first public IP. This work fine except for some ISPs working with public IPs in their internal network segment.
My problem is that one machine on my network already has port 22 (ssh) forwarding to its internal, static ip (under a different dyndns host name). Does this mean that no other machines on the LAN can use this port?
You can dedicate arbitary port on the external IP to be forewarded to your internal host at port 22. The only thing is when you connect you have to do it to the external host and have to specify the external port number.
I do not know if is used port 55 for anything else but using some port like 55555 will be safe and may be some day a well known port of you@myhost.dyndns.com.
Regards,
Open Source Security Myths Dispelled Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization subscribe
InformationWeek InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology. subscribe