global IP and Port | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

global IP and Port

I made a http server app running in android. it hosts my content through http protocol in private LAN. other phones and pc can access it with this address : http://ip:6655 6655 is a port bound with my server. it always prints all bound Host names and IPs in its console . When I open App when mobile data is on ; it prints variable IP like 100.66.234.124 or 22.194.205.173 Prints one of the two above depending on my sim cart type. in other phones that not exist in private LAN. tgi sIP in unavailable. browses just waits indefinitely. I think this is my global IP. is my assumption correct? if true, how can host my contents through this IP in global network? Can you explain to me how global IP works?

23rd Sep 2021, 5:41 PM
Mehran
Mehran - avatar
6 Answers
26th Sep 2021, 6:59 PM
Mehran
Mehran - avatar
+ 1
Martin Taylor Unfortunately i do not know how find router in global net at Android. can you help me? the other questions are: how host providers bind IPs to domain name?! I have above question for a long time. How long does it take for the WAN IP to change? and https://www.sololearn.com/discuss/2877314/?ref=app
23rd Sep 2021, 6:46 PM
Mehran
Mehran - avatar
+ 1
Martin Taylor , Thank you, your explanation was complete and very useful. Also have a look at my java question in earlier message. WAN ip changes repeatedly , so how they set that ip for domain name? for example if i register a domain name how can i bind it to my server? and please give me a reference about port forwarding .
24th Sep 2021, 8:59 AM
Mehran
Mehran - avatar
+ 1
Martin Taylor if you can't explain something in sololearn you can give its link . Although i heve searched already and i didn't find anything interesting.
24th Sep 2021, 10:10 AM
Mehran
Mehran - avatar
+ 1
Martin Taylor thanks a lot. i get it now. i read many web pages (about dns and ip) besides your given link now
25th Sep 2021, 6:53 AM
Mehran
Mehran - avatar
+ 1
You just need to port forward You can forward port from router settings. And it also depends upon your ISP. Because some ISP charge for port forwarding so you have to contact them. Search on Google for more details
26th Sep 2021, 6:58 PM
🌀 Shail Murtaza شعیل مرتضیٰ
🌀 Shail Murtaza شعیل مرتضیٰ - avatar