Accessing Linux server remotely
Accessing Linux server remotely
I’m a bit self-conscious, but it’s unclear how to link this device from another IP address. With the Ubuntu server and lamp installed, I can reach it on my LAN using my local IP, but I don’t have guidance on connecting externally.
what you trying to do have access to the machine or view the web server? If its the later just find out it's local ip and type that into the remote machine. ipconfig is what is used on windows there is a Linux command line that's the same however I cannot remember it.
To reach this server from outside your local network, you'll need specific details: your public IP address. You can locate it by searching online or using available tools. You must redirect a port on your router to the server, which means knowing both your LAN IP and ensuring the port is open and unused on the server. Websites typically use port 80, though you can configure any port you prefer. If needed, most ISPs block port 80 for business reasons. After configuring everything, visit the site at http://<external ip>/ or http://<external ip>:<port>. For remote access via SSH, use the same address but redirect to port 22.
Harry added a few notes. Configure your home router to send internal port 22 to external port 22. For safety, avoid using port 22 directly. Script kiddies often expose that port, and keeping it open could lead to massive log files over time. Check if you have a fixed or changing IP address; contact your service provider for clarity. If your IP shifts, set up a DNS service like DynDNS so your home address remains reachable through a consistent domain name.
The command in question is "ifconfig," used to manage network interface settings.
If it doesn't work, your internet service provider might be restricting port 80. They usually mention this on their help pages, so verify it.