# Join Session over LAN

**URL:** <https://forums.unrealengine.com/t/join-session-over-lan/311445>\
**Category:** Multiplayer & Networking\
**Tags:** lan, joining-session, unreal-engine, Multiplayer, Blueprint, question\
**Created:** [March 17, 2015, 9:32pm UTC](https://forums.unrealengine.com/t/join-session-over-lan/311445 "2015-03-17T21:32:49Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_b6ecf022](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b6ecf022](https://forums.unrealengine.com/u/anonymous_user_b6ecf022)\
**Post date:** [March 17, 2015, 9:32pm UTC](https://forums.unrealengine.com/t/join-session-over-lan/311445/1 "2015-03-17T21:32:49Z")

</div>

Using the MultiplayerShootout example, I can’t play over LAN. It simply doesn’t find the sessions?  
Pretty sure some setting somewhere is blocking it, but I can’t figure out what.

Tried with opening the firewall on both PCs and the router at port 7777, as stated around here on other posts. Still doesn’t work…

---

<div class="post-metadata">

**Author:** ![Spiris](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Spiris](https://forums.unrealengine.com/u/Spiris)\
**Post date:** [March 17, 2015, 11:11pm UTC](https://forums.unrealengine.com/t/join-session-over-lan/311445/2 "2015-03-17T23:11:25Z")

</div>

I am not entirely sure how the UE4 LAN framework works, but I would recommend connecting to your listen server by using the ‘open IPaddress’ console command if nothing else works.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b6ecf022](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b6ecf022](https://forums.unrealengine.com/u/anonymous_user_b6ecf022)\
**Post date:** [March 17, 2015, 11:25pm UTC](https://forums.unrealengine.com/t/join-session-over-lan/311445/3 "2015-03-17T23:25:29Z")

</div>

Given that they have blueprint for Creating and Joining sessions, with a boolean for LAN, it should work.  
I can get it to work locally, launching several games on my computer and they find and connect to each other.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f778cf8f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f778cf8f](https://forums.unrealengine.com/u/anonymous_user_f778cf8f)\
**Post date:** [March 17, 2015, 11:40pm UTC](https://forums.unrealengine.com/t/join-session-over-lan/311445/4 "2015-03-17T23:40:24Z")

</div>

Host matches broadcast their session info to other machines on the LAN by sending packets to your LAN’s subnet. I would check to see that this broadcast packet is not getting blocked, and confirm that your machines are on the same subnet, which they probably would be if they are hooked into the same router.

See Unreal\Engine\Source\Runtime\Online\OnlineSubsystem\Private\LANBeacon.cpp::FLANSession::Host function

Edit:

Also, just saw this at the top of LANBeacon.h:

```
#define LAN_ANNOUNCE_PORT 14001

```

So try opening up that port as well. Cheers

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b6ecf022](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b6ecf022](https://forums.unrealengine.com/u/anonymous_user_b6ecf022)\
**Post date:** [March 19, 2015, 11:16am UTC](https://forums.unrealengine.com/t/join-session-over-lan/311445/5 "2015-03-19T11:16:46Z")

</div>

It seems like a hassle if you have to manually open several ports in order to play a game over LAN.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f778cf8f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f778cf8f](https://forums.unrealengine.com/u/anonymous_user_f778cf8f)\
**Post date:** [March 19, 2015, 4:59pm UTC](https://forums.unrealengine.com/t/join-session-over-lan/311445/6 "2015-03-19T16:59:54Z")

</div>

Routers gonna route. I’m curious if opening the port worked for you?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b6ecf022](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b6ecf022](https://forums.unrealengine.com/u/anonymous_user_b6ecf022)\
**Post date:** [March 19, 2015, 5:12pm UTC](https://forums.unrealengine.com/t/join-session-over-lan/311445/7 "2015-03-19T17:12:14Z")

</div>

I haven’t had the possibility to test it yet, other guy left for the weekend.

---

<div class="post-metadata">

**Author:** ![kornel.l.varga](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kornel.l.varga](https://forums.unrealengine.com/u/kornel.l.varga)\
**Post date:** [August 9, 2016, 6:12pm UTC](https://forums.unrealengine.com/t/join-session-over-lan/311445/8 "2016-08-09T18:12:43Z")

</div>

gosh thats a long weekend… could you solve it? I am trying to connect from phone to PC via Wifi. My setup works with an adHoc network created on PC, but not with router’s. Is it a router setup issue?

---

<div class="post-metadata">

**Author:** ![ultimatejacob27](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ultimatejacob27](https://forums.unrealengine.com/u/ultimatejacob27)\
**Post date:** [October 17, 2020, 7:42am UTC](https://forums.unrealengine.com/t/join-session-over-lan/311445/9 "2020-10-17T07:42:53Z")

</div>

Did you ever find a solution?

---

<div class="post-metadata">

**Author:** ![mightyenigma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mightyenigma](https://forums.unrealengine.com/u/mightyenigma)\
**Post date:** [October 25, 2020, 1:52am UTC](https://forums.unrealengine.com/t/join-session-over-lan/311445/10 "2020-10-25T01:52:14Z")

</div>

Mine used to work with LAN onlinesubsystem NULL, but suddenly in 2020 it decided not to. Did you find a fix?

---

<div class="post-metadata">

**Author:** ![ultimatejacob27](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ultimatejacob27](https://forums.unrealengine.com/u/ultimatejacob27)\
**Post date:** [October 29, 2020, 10:02pm UTC](https://forums.unrealengine.com/t/join-session-over-lan/311445/11 "2020-10-29T22:02:45Z")

</div>

I haven’t, and I’m still looking. This guy supposedly has a solution that I’m trying to repeat: [UE4: How to set up LAN-Multiplayer for Windows and Android | Squareys' Blog](https://blog.squareys.de/ue4-android-windows-lan-multiplayer/)

---

<div class="post-metadata">

**Author:** ![mightyenigma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mightyenigma](https://forums.unrealengine.com/u/mightyenigma)\
**Post date:** [October 29, 2020, 11:55pm UTC](https://forums.unrealengine.com/t/join-session-over-lan/311445/12 "2020-10-29T23:55:36Z")

</div>

It looks like that was to patch UE 4.21  
so I’m not sure if that’s the issue now.

I know it’s not the issue with 4.24.3 because when I ran the C++ to GetHostAddr (or whatever the function is called) then it actually returns my correct private LAN IP address.

However, Android still can’t Find Sessions run by PC for me,  
but it turns out it CAN connect directly by IP address, but for some reason (and maybe this was just a fluke) it started working when I run the PC executable with command line args -nosteam -port 7777.

I don’t know if either of those args made the difference or if I just stopped being unlucky and the gremlins in my computer died off, but it works between android servers and android clients and also between PC servers and android clients. And between android servers and PC clients (though with REALLY bad network performance on the PC side).

---

<div class="post-metadata">

**Author:** ![mightyenigma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mightyenigma](https://forums.unrealengine.com/u/mightyenigma)\
**Post date:** [October 29, 2020, 11:56pm UTC](https://forums.unrealengine.com/t/join-session-over-lan/311445/13 "2020-10-29T23:56:11Z")

</div>

Anyway I just hope you don’t do a ton of work only to find out that the problem is already fixed in a later version of UE, but maybe it’s not fixed so let me know what you find out.

---

<div class="post-metadata">

**Author:** ![ultimatejacob27](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ultimatejacob27](https://forums.unrealengine.com/u/ultimatejacob27)\
**Post date:** [October 30, 2020, 1:30am UTC](https://forums.unrealengine.com/t/join-session-over-lan/311445/14 "2020-10-30T01:30:33Z")

</div>

So you’re saying you’ve got it working so that an android client can connect to an android server without manually entering the ip?

---

<div class="post-metadata">

**Author:** ![mightyenigma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mightyenigma](https://forums.unrealengine.com/u/mightyenigma)\
**Post date:** [October 30, 2020, 6:10am UTC](https://forums.unrealengine.com/t/join-session-over-lan/311445/15 "2020-10-30T06:10:24Z")

</div>

In the past, on version 4.22-4.23 but for some reason 4.23 stopped finding sessions when running on Android and I never found out why. Maybe it’s my wifi router’s fault.  
But for now I’m providing an option to search LAN sessions or input IP address so if the find sessions fails then they can at least type in the IP and join that way.
