Sign in to follow this  

A Solution to Server IP Changes?

Recommended Posts

So I've made a multiplayer game, and since I don't want to pay for a server I'm hosting the game on my LAN. The problem is, I have DSL, so occassionally my IP will change. This poses the question: How do I keep the client informed of what IP to access? One thing I do have is a website with a static IP. My plan is to have a file on the website listing the IP of the server. The server will access the website's FTP every 10 minutes or so and update the file with the correct IP. Instead of the client accessing a single hard-coded IP, it will access the website file and read the IP from there. Would this plan work? Are there any obvious security holes I should be aware of? Also, does anyone know where I might find a tutorial explaining how to do something like this? I'm using Java. Thanks!

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this