Couldn't include TSharedRef by SharedPointer.h How to do that?

I’ve tried #include
“Runtime/Core/Public/Templates/SharedPointer.h”
“Core/Public/Templates/SharedPointer.h”
“Public/Templates/SharedPointer.h”
“Templates/SharedPointer.h”

for TSharedRef
so in .Build.cs (“Core” “Network” “Sockets”) in PublicDependencyModuleNames where added

and error in TSharedRef addr = ISocketSubsystem::Get(PLATFORM_SOCKETSUBSYSTEM)->CreateInternetAddr();
example from here https://wiki.unrealengine.com/Third_Party_Socket_Server_Connection

NEED HELP!!!

Hi, I’m on same boat … good luck, It’s not the right time to stop drugs

FSocket* Socket = ISocketSubsystem::Get(PLATFORM_SOCKETSUBSYSTEM)->CreateSocket(NAME_Stream, TEXT("default"), false);
	TSharedRef < FInternetAddr > addr = ISocketSubsystem::Get(PLATFORM_SOCKETSUBSYSTEM)->CreateInternetAddr();
	FIPv4Address ip;
	FIPv4Address::Parse(pIp, ip);
	
	addr->SetIp(ip.GetValue());
	addr->SetPort(pPort);

Really thanks!!!

Not sure when this changed, but following the original wiki referenced in the question followed by the fixes by @ above I still had issues.

On L6 for ip GetValue() is no longer a method. To get the IP in uint32 format needed by SetIp just use ip.Value (it’s a var now it seems).

Hope that saves someone time!