Solved

Finding  ISP IP address which is  connected to wi-fi router

Posted on 2014-03-08
6
1,084 Views
Last Modified: 2014-03-08
Dear Experts,

I get one wi-fi  router which is connecting  between my phone line provided by ISP company and my linux server. The operation is fine.

On my linux server, using ifconfig -a command, and it will report
my LAN address such as 192.168.0.107..

Question-1
==========
Could I  use script/command/programming on linux  to get the ISP's IP which connected to my router from my linux system ? Or can I  do it on setup of router setup from
browsering 192.168.0.1 with admin login and password in order to broadcast the  ISP'IP to other LAN servers like mine, but I didn't find anything in the router setup page for such IP address broadcasting

Also I try the port forwarding on router setup to forward 192.168.0.1 router setup page
to other web user in order to collect ISP's IP on web browser or server, but It is
NOT  allowed for port forwarding to setup page, other LAN port forwarding is allowed.

Hope you understand my question

ISP' S IP( 212.3.145.???)---->( through phone-line)----->Wi-FI router----->LAN's IP (192.168.0.107)  for my linux server  


Please advise

Duncan
0
Comment
Question by:duncanb7
  • 4
6 Comments
 
LVL 19

Assisted Solution

by:Patricksr1972
Patricksr1972 earned 250 total points
ID: 39914516
In order to get the ISP adress couldnt you simply browse to www.whatismyip.org ?
0
 
LVL 13

Author Comment

by:duncanb7
ID: 39914527
the ISP' IP  is dynamic one( every new connection has new IP) , just digital and no domain name that is why I am asking this
0
 
LVL 11

Accepted Solution

by:
Miftaul earned 250 total points
ID: 39914594
As Patricksr1972, using whatismyip will show the current ISP assigned public IP.

If your intention is to access an internal server from outside, we can setup DDNS.
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 13

Author Comment

by:duncanb7
ID: 39914603
there is no domain name provided from ISP company that they  just provide all of you IP address only for your computer  to connect to DNS server and internet world, so  how to input into whatismyip without domain name ?

Please review my thread question,  and hope you understand my question

be reminded, just want to get it from linux system not from browser

From browser, we can do some php code like echo  $_SERVER[REMOTE_ADDR]
and run it on browser that will report out your ISP exact IP address not LAN address

on linux shell, we can run traceroute yahoo.com that will show all route
between your LAN IP to Yahoo's IP but it fail it just report first route of
the command is IP of router 192.168.0.1 instead of ISP IP, and I don't know why,
suppose traceroute will works for showing exact ISP dynamic IP from
first entry point of traceroute command output

I don't want to do it on brwoser for whatismyip  since my server is no browser , I need to do it on linux system


Duncan
0
 
LVL 13

Author Comment

by:duncanb7
ID: 39914627
it seems ifconfig and traceroute may not work and some say that will works for
some linux distrubution.

Finally, I found one linux comand that can get exact ISP IP address on the router

wget -qO http://mysite.com/ip.php  where ip.php in which it will  echo

 $_SERVER["REMOTE_ADDR'] variable , so the command act as do it on browser as
whatismyip.com.

Thanks for all your reply

Duncan
0
 
LVL 13

Author Closing Comment

by:duncanb7
ID: 39914629
Thanks for all of your reply

have a nice day

Duncan
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will step through configuring a SonicWALL appliance to utilize an internal DHCP server for Global VPN Client (GVC) hosts.  There are times when using an external (external to the SonicWALL) DHCP server, such as Windows Servers, isn’t pr…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question