Network Game Dev Diary: Input IP Address

Network Game Dev Diary: Input IP Address

Apr 5, 2019. | By: Lewis Bond
1 min

IP Address

When connecting to the server, each clients needs the ip address of the server in order to connect to it. As default it uses localhost which gets the ip of the local server, this is an issue when trying to connect to a server on a different computer. In order to accomplish this in the menu when the player presses enter they go to a page where they have to input their username and the ip address of the server they want to connect to. I use the service locator which stores teh username and ip adress and when they press enter the service locator is called and the ip address is given to client to connect to that server.

The user inputting the IP address.


PREVIOUS BLOG POST NEXT BLOG POST

About

Those who can do and those who can't teach games design.

Our Bunker



United Kingdom.