Sending information using sockets

Your client code is fine, it’s a problem with your server. I’m running a lightweight Python server which receives the messages.

That IP address looks like it’s on the Internet somewhere. You sure you’re not being blocked by firewall? If that’s UDP then you may need to port forward too.

I’ve managed to get it to work!! which brings me to my next issue, trying to get my character to move… The way I want this to happen is for a client to send X, Y coordinates and my character to move to said co-ordinates in the game environment. I already have the character moving using the basic WASD movement script so I wondered if its just a case of changing the if statement?

As you can tell, I’m extremely knew to this networking business so apologies for the simple questions!

I have a number of examples of objects in the BGE that are controlled via UDP socket communication by an external Java application. I created them for my dissertation that i have just finished and have examples of an Java application controlling an object that follows another object under the users control. I have another example of Java creating multiple objects in Blender and moving them all around the screen independently.

You may download them from here: https://github.com/TomBurnett/BlenderNetworkingJavaExamples

My dissertation is based around a Dinosaur park, where all the dinosaurs are controlled via Java externally. UDP socket communication is used for transporting data and Google Protocol buffers are used as the communication data format. The system works very well and I even implemented path finding at the Java side which turned out to be much more efficient than the BGE pathfinding.

You can find all the code for it here: https://github.com/TomBurnett/BlenderGameEngineJavabot