From f8c1ec96e1a867fe1ce6cb9221fe6b2acd0087ed Mon Sep 17 00:00:00 2001 From: Nigel Baillie Date: Mon, 7 Sep 2015 22:02:18 -0400 Subject: [PATCH] update ip address of server --- duel-with-the-devil/duel-with-the-devil.vcxproj | 14 ++++++++------ duel-with-the-devil/main.cpp | 6 +++--- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/duel-with-the-devil/duel-with-the-devil.vcxproj b/duel-with-the-devil/duel-with-the-devil.vcxproj index fd2731b..eed13e5 100644 --- a/duel-with-the-devil/duel-with-the-devil.vcxproj +++ b/duel-with-the-devil/duel-with-the-devil.vcxproj @@ -74,12 +74,12 @@ Level3 Disabled true - C:\Users\Nigel\lib\SDL2_include;%(AdditionalIncludeDirectories) + C:\Users\Nigel\lib\SDL2_include;C:\Users\Nigel\game\RakNet\Source;%(AdditionalIncludeDirectories) true - ws2_32.lib;SDL2_mixer.lib;SDL2_image.lib;SDL2.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) - C:\Users\Nigel\lib\SDL2-2.0.3\lib\x86;C:\Users\Nigel\lib\SDL2_image-2.0.0\lib\x86;C:\Users\Nigel\lib\SDL2_mixer-2.0.0\lib\x86;%(AdditionalLibraryDirectories) + RakNet_VS2008_LibStatic_Release_Win32.lib;ws2_32.lib;SDL2_mixer.lib;SDL2_image.lib;SDL2.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) + C:\Users\Nigel\lib\SDL2-2.0.3\lib\x86;C:\Users\Nigel\lib\SDL2_image-2.0.0\lib\x86;C:\Users\Nigel\lib\SDL2_mixer-2.0.0\lib\x86;C:\Users\Nigel\game\RakNet\Lib;%(AdditionalLibraryDirectories) @@ -105,14 +105,16 @@ true true true - C:\Users\Nigel\lib\SDL2_include;%(AdditionalIncludeDirectories) + C:\Users\Nigel\lib\SDL2_include;C:\Users\Nigel\game\RakNet\Source;%(AdditionalIncludeDirectories) + _CRT_SECURE_NO_WARNINGS;_MBCS;%(PreprocessorDefinitions) + MultiThreaded true true true - ws2_32.lib;SDL2_mixer.lib;SDL2_image.lib;SDL2.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) - C:\Users\Nigel\lib\SDL2-2.0.3\lib\x86;C:\Users\Nigel\lib\SDL2_image-2.0.0\lib\x86;C:\Users\Nigel\lib\SDL2_mixer-2.0.0\lib\x86;%(AdditionalLibraryDirectories) + RakNet_VS2008_LibStatic_Release_Win32.lib;ws2_32.lib;SDL2_mixer.lib;SDL2_image.lib;SDL2.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) + C:\Users\Nigel\lib\SDL2-2.0.3\lib\x86;C:\Users\Nigel\lib\SDL2_image-2.0.0\lib\x86;C:\Users\Nigel\lib\SDL2_mixer-2.0.0\lib\x86;C:\Users\Nigel\game\RakNet\Lib;%(AdditionalLibraryDirectories) diff --git a/duel-with-the-devil/main.cpp b/duel-with-the-devil/main.cpp index b4410ee..ff3c221 100644 --- a/duel-with-the-devil/main.cpp +++ b/duel-with-the-devil/main.cpp @@ -1320,7 +1320,7 @@ int main() { RakNet::RakPeerInterface* peer = RakNet::RakPeerInterface::GetInstance(); RakNet::Packet* packet; - RakNet::SystemAddress server_addr("127.0.0.1", 3999); + RakNet::SystemAddress server_addr("45.63.16.189", 8081); while (true) { // ============= Frame Setup ================= @@ -1364,7 +1364,7 @@ int main() { peer->Startup(1, &sd, 1); } printf("Starting the client.\n"); - peer->Connect("127.0.0.1", 3999, 0,0); + peer->Connect("45.63.16.189", 8081, 0,0); multiplayer_status = CONNECTING; break; @@ -1382,7 +1382,7 @@ int main() { default: OutputDebugString("UNABLE TO CONNECT\n"); - peer->Connect("127.0.0.1", 3999, 0,0); + peer->Connect("45.63.16.189", 8081, 0,0); break; }