Time for action – The client batch file
When we run a game and connect to a server, we give the game an IP address to connect to. When it's the same computer there's only one number we need to know.
Create a new batch file called
Awesome Test Client.bat
.Write the following in it:
R:\UDK\UDK-AwesomeGame\Binaries\Win32\UDK.exe 127.0.0.1 -log
When connecting to the same computer, the IP address will be 127.0.0.1. This is the IP we'll use to connect to our server.
Save the file and close it.
What just happened?
We're about to learn a very tough lesson here, so get ready. Double-click on the server batch file to start the server up, then once you see it say "Initializing Game Engine Complete", double-click on the client batch file to start up the client. If everything goes well, you should see some more lines being logged by the server as the client connects, starting with this:
[0009.17] NetComeGo: Open TheWorld 08/15/11 19:43:35 127.0.0.1
But now what's happening? Instead of starting into our game...