Jump to content

I feel a bit embarrassed but somehow, no one explains how to do this:

I have an old laptop that i installed ubuntu server and lamp on and i can access it on my lan (and wifi) network (with my local ip) but I can't find any explanation on how to connect to it from an external ip.

Link to comment
https://linustechtips.com/topic/661603-accessing-linux-server-remotely/
Share on other sites

Link to post
Share on other sites

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.

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to post
Share on other sites

If you're trying to access this server (presumably, a website?) outside your LAN, you'll need a few things:

  1. Your external IP address. This can be found usually by typing "ip address" into Google, or by using the plethora of sites available that will tell you.
  2. You'll need to forward a port on your router to your server. This requires that you know the LAN IP of the machine and have the port open & unused on the server as well. The port used for websites is port 80, but you can run the server on any port you'd like. (You may have to as well, in my experience most ISPs will block port 80 because they want you to buy a business connection.)

Once you've set all this up, you can browse to http://<external ip>/ or http://<external ip>:<port> if you aren't able to run the server on port 80.

 

Using that same address but forwarding a different port, say 22, and setting up SSH on the server will allow you to remotely access the machine's console.

Link to post
Share on other sites

What Harry said with a few addendums.

 

  1. Setup your home router to forward the internal port 22 to the external port 22.  However, I recommend using any port except port 22 for security reasons.  Script kiddies with wear that port out, and if you leave it as port 22, you will wind up with gigabytes of logs within a year.
  2. Determine if you have a static or dynamic IP, if you aren't sure, ask your provider.  If it's dynamic, then setup a service like DynDNS so your home IP will always be accessible via a DNS entry no matter what the IP changes to.

"There is probably a special circle of Hell reserved for people who force software into a role it was never designed for."
- Radium_Angel

Link to post
Share on other sites

Give us the make/model number.  Sometimes the feature goes by another name:  Virtual Servers, Services, etc.

"There is probably a special circle of Hell reserved for people who force software into a role it was never designed for."
- Radium_Angel

Link to post
Share on other sites

On 9/17/2016 at 7:20 AM, oferg said:

Here's what i've tried to do. but to no avail... -snipped img-

If that's not working then your ISP may be blocking port 80. Generally they'll advertise this on their support website, give it a check.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×