D
D
DVoropaev2016-12-10 13:45:04
linux
DVoropaev, 2016-12-10 13:45:04

How to find external ip?

There is a laptop with ubuntu 16, on it there is an apache. Laptop, stationary, connected to wifi. In the local ip address of the laptop is 192.168.0.80. The host is set to the same ip. From the locale it is possible to enter the site at this address. How to do it from outside, via the Internet? I understand that you need an external ip. How to recognize him? I tried to google, threw out to sites showing the ip of the router. (I went to this ip, got into the config of my router).
I'm guessing 2 ways:
1) Use a utility. What?
2) Calculate it yourself, knowing the local address, the external address of the router, and the netmask. How exactly?

Answer the question

In order to leave comments, you need to log in

7 answer(s)
A
Artem @Jump, 2016-12-10
Tag

You can view it very simply, and only in one place - on your router, see what address is assigned to the interface where the provider is connected.
This is your external address.
But this does not mean that you can access it from anywhere on the Internet.
To enter your address, you need to have a white (real) address. If you have a gray (private) address, you won't be able to login.

I tried to google, threw out to sites showing the ip of the router. (I went to this ip, got into the config of my router).
In this case, you most likely have a white address, and you can safely access your laptop from an external network, you just need to forward the necessary ports on the router.
But the fact that your router admin panel is open to the outside is bad.

E
Evgeniy Volf, 2016-12-10
@Wolfnsex

1. Contact the provider's support and buy an external / "White IP", or get details on this topic.
2. Bring the laptop to the DMZ (demilitarized zone) and / or configure the router to forward all incoming connections to the 80th port on the laptop's IP address. 99% of routers operate in NAT mode, thanks to which packets from outside cannot (mostly cannot) reach the recipient on their own if he did not initiate the connection himself. In another way, it can also be called "port forwarding". Instructions can be found in the router manual.
PS The procedure is exactly the same.
PPS If the IP is already white, but dynamic - you can use services like those described for example here .

D
Dmitry, 2016-12-10
@plin2s

Did you access the external IP from an external network or from the same one?
If from external networks you are allowed to go to the address to the admin panel of the router, then you only have to do port forwarding from 80 external to 80 to the internal ip (192.168.0.80).
You may also have to disable access to the router's admin panel from outside or move it to another port. It already depends on the model of the router and its features. As Yevgeny Volf
correctly wrote , if the external IP is dynamic, then you should use ddns services.

V
Vladimir Kuts, 2016-12-10
@fox_12

$ curl ip.appspot.com

A
Alexander Karabanov, 2016-12-10
@karabanov

Go to https://2ip.ru/

I
Ilya Evseev, 2016-12-11
@IlyaEvseev

What is the router model?
Most routers provide two methods of Internet access to a local server: port forwarding and DMZ.
On the example of D-Link:
- dlink.ru/u/faq/69/303.html
- www.dlink.ru/r/faq/68/275.html

A
afixize, 2016-12-15
@afixize

curl ifconfig.co

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question