Henrique Aguiar wrote:I've made several networking apps, but due to the fact that I didn't have a different computer, I didn't get to test them. Now that I did, I've discovered my apps work just fine, if both PCs are on the same network. If I try to use them over different networks, they do not work. Why is that?
Henrique Aguiar wrote:
However, is there a way to make my IP address, well, stay the same regardless of my network? That would be certainly helpful.
Henry Wong wrote:
Henrique Aguiar wrote:I've made several networking apps, but due to the fact that I didn't have a different computer, I didn't get to test them. Now that I did, I've discovered my apps work just fine, if both PCs are on the same network. If I try to use them over different networks, they do not work. Why is that?
The IP addresses used in your example are reserved for private networks (most of them). Most likely you are behind a NAT'ed router. This kinda makes sense, as there is no reason to place all the computers in the library, university, home, etc. directly on the internet.
Unless, of course, you want the computers reachable from the outside. To do that, talk to your network administrator. You need to have the port forwarded from the router (internet connection) to the machine (on the private network) that you want. And you also need to change the code to connect to the router instead.
Henry
Henrique Aguiar wrote:
Alright. I did see something similar somewhere along the internet. So, assuming I'm the administrator (or my parents are, but they won't know how to do this and I have basically access to configure whatever), how exactly would I have the port forwarded from the router to the machine?
Henrique Aguiar wrote:And change the code to connect to the router?
Henry Wong wrote:
Henrique Aguiar wrote:
Alright. I did see something similar somewhere along the internet. So, assuming I'm the administrator (or my parents are, but they won't know how to do this and I have basically access to configure whatever), how exactly would I have the port forwarded from the router to the machine?
Well, it depends on the router... Different routers have different administration setups. So, find the manual for your router first... but to answer your question, most routers support a web interface, so it is likely you will be using a browser to do it.
... and .... routers are generally password protected.... so, you will need to know that too. Now, if your parents don't know what the password is, then most likely you are using the default password. Take a look at the router manual for that as well.
Henry
Henrique Aguiar wrote:
To be more precise, the network is my phone's tethering, since we're don't have internet at home (because we're paying the hisa and stuff). So, how would I have the port forwarded if the hotspot is my phone?
I claim this furniture in the name of The Ottoman Empire! You can keep this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|