BP Node to Get Your Computer’s IP Address!
UPDATE: The VictoryPC class got removed from my plugin somehow between updates, this post below is now fully integrated into the plugin again!
Now you can get your computer’s IP from within UE4, from within Blueprints!
I’ve finally succeeded at implementing a node that many have been trying to implement since the Beta!
This is a BP node that gets the IP address of your computer!
My node relies on http://api.ipify.org, a free and easy way to get your current IP address.
Because this node involves an HTTP request I can’t make it a static library node, so I instead made a VictoryPC class that contains only this functionality.
You can easily re-parent your current player controller blueprint to use my plugin VictoryPC class!
and if you are not using a PC already, make sure to go to World Settings and use my VictoryPC as your player controller!
As long as my Victory BP Library is an active plugin for you, then this VictoryPC class will show up!
Now we can all get the IP address of the local computer for use with multiplayer games or webserver activities!
Here’s the setup you should create in your Blueprinted version of my VictoryPC!
**C++ Source Code For You**
Here is the C++ source code I wrote just earlier today!
FHttpModule* Http = &FHttpModule::Get();
FString TargetHost = "http://api.ipify.org";
TSharedRef < IHttpRequest > Request = Http->CreateRequest();
void AVictoryPC::HTTPOnResponseReceived(FHttpRequestPtr Request, FHttpResponsePtr Response, bool bWasSuccessful)