Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have shared my internet connection via Ethernet with another computer, using the shared option under Ethernet in Network settings. I believe this is working but I can't know for sure as I am unable to access Computer 2, because I don't have a monitor for it.

Router ‒‒‒‒‒‒‒‒‒‒> Computer 1 (Ubuntu) ‒‒‒‒‒‒‒‒‒‒> Computer 2 (Other Linux)

So the first question is: how do I find out the IP of Computer 2 so I can SSH to it from Computer 1.

And: how can I forward a port right through from my router to the machine using the shared connection (computer 2).

share|improve this question
Welcome to Ask Ubuntu! It is preferred if you can post separate questions instead of combining your questions into one. That way, it helps the people answering your question and also others hunting for atleast one of your questions. Thanks! – guntbert Oct 17 '13 at 19:43

You can use nmap Install nmap to scan the subnet to find Computer 2.

For example:

# nmap -T4 -F 10.42.0.*

will find the computers present subnet. Some scripting can then be used to isolate the Ip found.

Still looking myself for your 2nd question ;)

share|improve this answer

I know this is an old thread (and most likely dead), but I found it while looking so I figured I would update it to help anyone else who finds this as well. To answer your second question, use rinetd (I'm currently using it and it is working great).

See this page for more details:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.