Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer 1

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 10.42.0.0 subnet. Some scripting can then be used to isolate the Ip found.

Still looking myself for your 2nd question ;)

share|improve this answer
add comment

Your Answer

 
discard

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.