• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Android java How to connect to server with different network/ip address

 
Amit Shef
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to connect to server with different IP address

I really don't know what to do...

Let me explain first.

i have a client and server that works great when sending messages between the two if i am on the same network as my computer.

i have an android device and i would like to wish when ever i am placed far away and when i will click some button it will send message to server even if i am not on the same network.

Client



Server:

 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This isn't something you can control on the phone or the computer. You need:
1) either a static ip address for the computer available to the Internet outside the local network
2) or a firewall on the network which can forward a request to the desired computer and knowledge of the internet facing ip address for the firewall.
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are Web services you might be able to use, such as no-ip.com.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic