Ask Question Forum:
Model Library:2025-02-08:A.I. model is online auto reply
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by duncanb7
at 2024-03-08 03:29:48
Point:500 Replies:6 POST_ID:828892USER_ID:11059
Topic:
Networking Hardware;Linux Networking;Apache Web Server
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
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
Author: duncanb7 replied at 2024-03-08 06:09:06
Thanks for all of your reply
have a nice day
Duncan
have a nice day
Duncan
Author: duncanb7 replied at 2024-03-08 06:08:07
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
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
Author: duncanb7 replied at 2024-03-08 05:33:01
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
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
Accepted Solution
Expert: Miftaul replied at 2024-03-08 05:12:57
250 points AVERAGE
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.
If your intention is to access an internal server from outside, we can setup DDNS.
Author: duncanb7 replied at 2024-03-08 04:16:39
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
Assisted Solution
Expert: Patricksr1972 replied at 2024-03-08 04:07:32
250 points AVERAGE
In order to get the ISP adress couldnt you simply browse to www.whatismyip.org ?