# How to get the player's internal IP address?

**URL:** <https://forums.unrealengine.com/t/how-to-get-the-players-internal-ip-address/459274>\
**Category:** Mobile\
**Tags:** unreal-engine, Android, CPP, question\
**Created:** [December 9, 2019, 10:48am UTC](https://forums.unrealengine.com/t/how-to-get-the-players-internal-ip-address/459274 "2019-12-09T10:48:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TetraStudiosDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TetraStudiosDev](https://forums.unrealengine.com/u/TetraStudiosDev)\
**Post date:** [December 9, 2019, 10:48am UTC](https://forums.unrealengine.com/t/how-to-get-the-players-internal-ip-address/459274/1 "2019-12-09T10:48:58Z")

</div>

How can I get a player’s internal, local IPV4 address in-game? (Like 192.168.xx.xx). My project is going to be released on Android, so I cannot use the command prompt or other Windows-specific things.  
Any help would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [December 9, 2019, 11:04pm UTC](https://forums.unrealengine.com/t/how-to-get-the-players-internal-ip-address/459274/2 "2019-12-09T23:04:48Z")

</div>

For network systems there really no division between internal or external IP, device don’t distibuish diffrence between them or else they been programmed to do so but by standard they don’t need to, so you searching for is IP set on the device, this is only IP you can get on the device. It’s all because ability to use internet in enclosed local network that use private IP addresses (Which been designated for such network use) is kind of a hack, your device always sends same source IP in packets even if it’s private, but router has a NAT (Network Address Translation) system which translates private IP to public IP for outgoing traffic and translates back when data goes back, your device is always thinking that private IP is your actual IP and have 0 idea (Again or else it been explicitly programmed to find out by other factors) that address is not actual IP they communicating with internet, it can only find out if it ask server about IP that his data is coming from and it will return IP translated by NAT which is public IP.

You also need to remember that devices can have more then just 1 address depending on there network setup.

You can get lot of device network stuff from ISocketSubsystem:

> **[ISocketSubsystem](https://docs.unrealengine.com/5.1/en-US/API/Runtime/Sockets/ISocketSubsystem/)**
>
> This is the base interface to abstract platform specific sockets API differences.

you access it like this:

```
ISocketSubsystem::Get(PLATFORM_SOCKETSUBSYSTEM)

```

Those 2 functions can be useful:

> **[ISocketSubsystem::GetLocalAdapterAddresses](https://docs.unrealengine.com/5.1/en-US/API/Runtime/Sockets/ISocketSubsystem/GetLocalAdapterAddresses/)**
>
> Gets the list of addresses associated with the adapters on the local computer.

> **[ISocketSubsystem::GetLocalHostAddr](https://docs.unrealengine.com/5.1/en-US/API/Runtime/Sockets/ISocketSubsystem/GetLocalHostAddr/)**
>
> Uses the platform specific look up to determine the host address

---

<div class="post-metadata">

**Author:** ![Aphro\_Steampro](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/aphro_steampro/32/921986_2.png) [@Aphro\_Steampro](https://forums.unrealengine.com/u/Aphro_Steampro)\
**Post date:** [September 9, 2022, 12:47am UTC](https://forums.unrealengine.com/t/how-to-get-the-players-internal-ip-address/459274/3 "2022-09-09T00:47:42Z")

</div>

I am attempting to use the Pixel Streaming project. I would like to use this for a racing game… I do not know if this is the right topic area. Hops someone knows. I mean do I just share the IP address with users? I uploaded the file to but not sure if that will allow the user to log in and play the game
