Home » Questions » Computers [ Ask a new question ]

My server has an IP. And I use this IP for everything. What IP is my laptop?

My server has an IP. And I use this IP for everything. What IP is my laptop?

I usually do this:

Asked by: Guest | Views: 65
Total answers/comments: 2
Guest [Entry]

"Your wireless router creates a private network for your laptop and all your other wireless devices to share a single IP address. The IP your ISP gives you might change from time to time but for the most part it doesn't change too much.

When your router gets a request from the internet to port 22, it blocks it because the router doesn't know what computer to send the request to. But if you tell it to, it can forward the port to a specific computer, i.e. your laptop.

So you can usually access your routers settings by pointing your browser to 192.168.0.1 (or 1.1) and look for a section with the words port forwarding in it. Tell it to forward port 22 to your laptop's ip address. (You can get the address via ifconfig).

Use a website like whatismyip.com to find out the public-facing address that the ISP gives you and then use the public IP address to connect to your laptop via SSH.

If you only want a temporary connection you can use your web server to bounce connections to your local computer by using openssh like this:

ssh server-user@server-ip -R2222:localhost:22

As long as that connection (from your laptop to your server) is open, then you can connect to your laptop with:

ssh laptop-user@server-ip -p 2222"
Guest [Entry]

"To find out the ip of your laptop, launch ifconfig from a terminal application (technically it's a command you're supposed to type at a shell command prompt).
To find out what IP you have online,

if you're behind a NAT/Router, you could check your router status/configuration
you could try this link

This, however, does not guarantee that you can do scp from a remote site into your laptop. As a matter of fact,

your laptop must have a ssh server listening, and
the TCP port where the ssh server is listening (usually port 22) should be accessible from outside; this means, that if you're behind a nat/router you need to configure the router to redirect (or ""forward"") that port to your laptop's IP address.

Things might be more complicated than that. Next time please state clearly what your OS is, what you need to do, provide examples, and if possible detail which steps you did and why it wasn't working."