LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-07-2005, 07:18 AM   #1
mfrangos79
Member
 
Registered: Jun 2005
Posts: 53

Rep: Reputation: 15
Exclamation how to find my computer address?


Problem solved : How to find the name of your computer as it appears on the internet

Hi , I need to find my computer address, name ... so that i can ssh it from college..
What i am looking for is like ' pcname.eu.ac.uk ' for example

Thx ![

Last edited by mfrangos79; 11-09-2005 at 05:22 PM.
 
Old 10-07-2005, 07:36 AM   #2
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Ubuntu Slackware
Posts: 1,028

Rep: Reputation: 42
If you are going to ssh from college to home, the simplest thing would be to go to whatismyip.com on your home computer and then ssh to that address (edit: by "that address" I mean the one given when you go to whatismyip.com) from college. If your home box is behind a router, don't forget to point port 22 to your home box.

Last edited by esteeven; 10-07-2005 at 07:37 AM.
 
Old 10-07-2005, 08:36 AM   #3
mfrangos79
Member
 
Registered: Jun 2005
Posts: 53

Original Poster
Rep: Reputation: 15
Thx for your answer...however... :

How do i point port 22? and what is that for ..does it have to be port 22?
(just a new in Linux -debian)
 
Old 10-07-2005, 08:43 AM   #4
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 50
if you don't have a domain name, you will have to use the ip adress which is given by :
Code:
/sbin/ifconfig
 
Old 10-07-2005, 05:06 PM   #5
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware64 14.0
Posts: 1,517

Rep: Reputation: 90
Quote:
Originally posted by mfrangos79
Thx for your answer...however... :

How do i point port 22? and what is that for ..does it have to be port 22?
(just a new in Linux -debian)
No, port 22 is just the usual port for ssh connections. Otherwise you have to configure your ssh-daemon to wait for incoming connections on other ports.

If you own a hardware router there are usually settings like "virtual server" or something like this, may be named other. To get your network secure a router in most cases rejects incoming connections on ports, unless you tell it to forward packages on these ports to a special computer in your network. That means you would have to forward port 22 on your router (if you have one ) to your computer with the sshd daemon or for example port 80 if you would like your home computer to act as a web server (with apache configured to use the standard port 80). Otherwise most routers would simply drop these packages, you could not connect from outside to your home computer.
 
Old 11-01-2005, 07:55 PM   #6
mfrangos79
Member
 
Registered: Jun 2005
Posts: 53

Original Poster
Rep: Reputation: 15
Lightbulb how to find my network name .. SOLUTION

To find your computer name on the network so that you can ssh it from anywhere in the world .. do the following :

open a shell and type:
Code:
/sbin/ifconfig
you will see somewhere at the begining something like
Quote:
inet addr:xxx.xx.xxx.xx
where x's are numbers
Then simply do the following in a shell :
Code:
host xxx.xx.xxx.xx
and you can see the name of your computer on the network
 
Old 11-01-2005, 09:10 PM   #7
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 46
You may want to have a look at www.dyndns.org if you want a free third-level domain name. They require you to update your domain name every 5 to 35 days (at your choice--but not less than 5, which might be a problem, depending on your DHCP lease length or other circumstances).

It works for me, so by induction hypothesis it'll work for you too

hth --Jonas
 
Old 11-07-2005, 06:41 PM   #8
mfrangos79
Member
 
Registered: Jun 2005
Posts: 53

Original Poster
Rep: Reputation: 15
thx
 
Old 11-08-2005, 01:24 AM   #9
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 46
OP: if you have a solution, I suggest you state so in the top of your first post, for two reasons:

(1) everyone who enters this thread can see your problem has been solved.
(2) everyone can see where to find a solution.

As a good example, have a look at http://www.linuxquestions.org/questi...hreadid=351315

--Jonas
 
Old 11-09-2005, 05:20 PM   #10
mfrangos79
Member
 
Registered: Jun 2005
Posts: 53

Original Poster
Rep: Reputation: 15
ok done
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to find the ip address of a computer that is connected to LAN gajaykrishnan Linux - Networking 7 12-03-2010 05:38 AM
How to find an IP address from the MAC address of a remote machine ? jitz Linux - General 3 01-03-2006 07:55 AM
How to find IP address of a machine if I know their MAC Address dysenteryduke Linux - Networking 13 09-12-2005 10:21 AM
How to find MAC address of a specified IP address ? longtongfish Programming 1 07-12-2005 03:26 PM
How to check the IP address on a computer. LenkaNguyen Linux - Networking 5 01-28-2002 01:08 PM


All times are GMT -5. The time now is 04:13 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration