how to find out what your IP address and which IP adress do i need for ssh

Asked by Javier on 2010-03-22

If I can find the my IP address, if am using a usb wifi adapter does the wifi have a IP address or am supposed to know the computer's IP adress

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu openssh Edit question
Assignee:
No assignee Edit question
Last query:
2010-03-22
Last reply:
2010-03-22
Ryan Kavanagh (ryanakca) said : #1

Hi, I don't know if there is a graphical way to find it. Here's mine:

if you want to find the wifi interface's IP address and don't know what the name of your wireless interface is (wlan0, ath0, etc) open a terminal and type in: iwconfig<enter>
It will display something like:
[START QUOTE]

lo no wireless extensions.

eth0 no wireless extensions.

wlan0 IEEE 802.11bgn ESSID:"OpenWrt"
          Mode:Managed Frequency:2.462 GHz Access Point: 00:0F:66:36:9E:AC
          Bit Rate=54 Mb/s Tx-Power=27 dBm
          Retry long limit:7 RTS thr:off Fragment thr:off
          Power Management:off
          Link Quality=43/70 Signal level=-67 dBm
          Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
          Tx excessive retries:0 Invalid misc:0 Missed beacon:0

vboxnet0 no wireless extensions.

[END QUOTE]

In this case, you'll see that my wireless interface is wlan0. Next, type this command in your terminal: ifconfig wlan0<enter>
Replace wlan0 with your wireless interface. You'll see something like:

[START QUOTE]

wlan0 Link encap:Ethernet HWaddr 00:22:b0:cc:b1:a3
          inet addr:192.168.1.143 Bcast:192.168.1.255 Mask:255.255.255.0
          inet6 addr: fe80::222:b0ff:fecc:b1a3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:6698387 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4965513 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:397071012 (397.0 MB) TX bytes:576687930 (576.6 MB)
[END QUOTE]

You're IP address is your 'inet addr:', in my case: 192.168.1.143

Best wishes,
Ryan

boballen55 (boballen55) said : #2

What are you trying to do exactly. The wireless router will have an IP address that you will need to use if you are trying to connect over the internet outside of your LAN. You'll also have to set up port forwarding I believe. Here is some SSH information:
https://help.ubuntu.com/community/SSH
If you are just trying to connect via a LAN you use the local IP address for the computer you are trying to connect to. By roaming through the links on that site you should be able to find information you need for exactly what you are trying to set up.

Javier (ocean-wave11) said : #3

yes I would like to connect outside the lan and inside of it

rajasthani (chococream52) said : #4

If you want to find your public ip address use http://www.ip-details.com/

Can you help with this problem?

Provide an answer of your own, or ask Javier for more information if necessary.

To post a message you must log in.