# Listen Server works on LAN but not on WAN

**URL:** <https://forums.unrealengine.com/t/listen-server-works-on-lan-but-not-on-wan/480943>\
**Category:** Platform & Builds\
**Tags:** Steam, listen-server, lan, unreal-engine, question\
**Created:** [March 27, 2021, 3:44am UTC](https://forums.unrealengine.com/t/listen-server-works-on-lan-but-not-on-wan/480943 "2021-03-27T03:44:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_282049721](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_282049721](https://forums.unrealengine.com/u/anonymous_user_282049721)\
**Post date:** [March 27, 2021, 3:44am UTC](https://forums.unrealengine.com/t/listen-server-works-on-lan-but-not-on-wan/480943/1 "2021-03-27T03:44:06Z")

</div>

On LAN, it works, the log shows:

 ![333763-image.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/6/d/66d61f1aed29a0053d915b5a97c13452acd2e047.png)

On WAN, It didn’t work. The log shows it never received any response except itself. Connected to steam btw

 ![333764-image-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/4/3/c430f7ecd9e4e82f8f8fb218f77a5cdd1f41d325.png)

I’m wondering is it even allowed to send 255.255.255.255 on WAN or router will block it when the broadcast is going out?

---

<div class="post-metadata">

**Author:** ![BamaGame](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BamaGame](https://forums.unrealengine.com/u/BamaGame)\
**Post date:** [March 27, 2021, 4:39am UTC](https://forums.unrealengine.com/t/listen-server-works-on-lan-but-not-on-wan/480943/2 "2021-03-27T04:39:20Z")

</div>

1.first you must “Port Forward” usable ports  
2.you must use Global Ip instead of your network IP (simple in google write my IP and it will show up)

I hope these 2 steps will solve your problem

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_282049721](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_282049721](https://forums.unrealengine.com/u/anonymous_user_282049721)\
**Post date:** [March 27, 2021, 7:11pm UTC](https://forums.unrealengine.com/t/listen-server-works-on-lan-but-not-on-wan/480943/3 "2021-03-27T19:11:39Z")

</div>

Thanks Man.

Here’s what I have tried:

- Put my computer internal IP address to DMZ (I configured static IP address instead of DHCP), according to [router - What is port forwarding and what is it used for? - Super User](https://superuser.com/questions/284051/what-is-port-forwarding-and-what-is-it-used-for#:~:text=Port%20forwarding%20on%20your%20router,internal%20computer%20with%20that%20address)
- Add rule on port forwarding on my router:  
Private IP: My internal IP  
Private port & Public Port: 1-65535  
TCP&UDP

Then I used [https://canyouseeme.org/](https://canyouseeme.org/) to check my steam port: 27036. It shows port on my router external IP address(which is also external ip of the entire LAN) is open.  
I![alt text][1]

I tried to look up some other steam port like 27015, 27030, all connections are refused.  
![alt text][2]

Since my ports are all open, it makes me think that’s probably because there’re no listener listening on these ports.  
so I picked another port which has .exe listening on that port 49666 (by using netstat -a -b) to see, it’s open.  
So I doubt my steam services/configuration may not be complete or correct.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_282049721](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_282049721](https://forums.unrealengine.com/u/anonymous_user_282049721)\
**Post date:** [March 27, 2021, 7:14pm UTC](https://forums.unrealengine.com/t/listen-server-works-on-lan-but-not-on-wan/480943/4 "2021-03-27T19:14:55Z")

</div>

![333865-image-from-ios.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/0/e/70ee56a0a38fd38d3b5c8e51236b04e2af52fefd.jpeg)

 ![333866-27015-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/d/a/ada15bb708ab68959ada61410837f5e8fea6a5fe.jpeg)

---

<div class="post-metadata">

**Author:** ![BamaGame](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BamaGame](https://forums.unrealengine.com/u/BamaGame)\
**Post date:** [March 28, 2021, 6:57am UTC](https://forums.unrealengine.com/t/listen-server-works-on-lan-but-not-on-wan/480943/5 "2021-03-28T06:57:20Z")

</div>

it seems some of your ports are blocked by isp because when you have 1 success it means you made it correct

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_282049721](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_282049721](https://forums.unrealengine.com/u/anonymous_user_282049721)\
**Post date:** [March 29, 2021, 6:13am UTC](https://forums.unrealengine.com/t/listen-server-works-on-lan-but-not-on-wan/480943/6 "2021-03-29T06:13:51Z")

</div>

## Then I turned on my unreal engine log, it looks like my steamworks failed.

## LogSteamShared: Steam SDK Loaded! LogOnline: OSS: Creating online subsystem instance for: Steam LogSteamShared: Warning: SteamAPI failed to initialize, conditions not met. LogOnline: Warning: STEAM: Steamworks: SteamUtils() failed! LogOnline: Warning: STEAM: Steamworks: SteamUser() failed! LogOnline: Warning: STEAM: Steamworks: SteamFriends() failed! LogOnline: Warning: STEAM: Steamworks: SteamRemoteStorage() failed! LogOnline: Warning: STEAM: Steamworks: SteamUserStats() failed! LogOnline: Warning: STEAM: Steamworks: SteamMatchmakingServers() failed! LogOnline: Warning: STEAM: Steamworks: SteamApps() failed! LogOnline: Warning: STEAM: Steamworks: SteamNetworking() failed! LogOnline: Warning: STEAM: Steamworks: SteamMatchmaking() failed! LogOnline: STEAM: [AppId: 0] Client API initialized 0 LogOnline: Display: STEAM: OnlineSubsystemSteam::Shutdown() LogOnline: Warning: STEAM: Steam API failed to initialize! LogOnline: Display: STEAM: OnlineSubsystemSteam::Shutdown() LogOnline: OSS: Unable to create OnlineSubsystem module Steam LogOnline: OSS: Creating online subsystem instance for: NULL LogOnline: Verbose: OSS: Created thread (ID:10008). LogInit: WinSock: version 1.1 (2.2), MaxSocks=32767, MaxUdp=65467 LogOnline: OSS: TryLoadSubsystemAndSetDefault: Loaded subsystem for module [NULL]

With this log, I also tried 2 scenarios, LAN and WAN. Another player(my 2nd computer) can join the game in LAN.  
Then I used external IP address on my 2nd computer by using hotspot shared by my iphone with my mobile data network. (confirmed it by ipconfig /all, It shows 172.x.x.x ), and player can’t join this time since it’s WAN. Then I compared both logs:

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_282049721](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_282049721](https://forums.unrealengine.com/u/anonymous_user_282049721)\
**Post date:** [March 29, 2021, 6:14am UTC](https://forums.unrealengine.com/t/listen-server-works-on-lan-but-not-on-wan/480943/7 "2021-03-29T06:14:08Z")

</div>

- LAN, another player can join. It looks the computer hosting the game(my 1st computer) uses UDP broadcasting to  
find players within LAN to join.

* * *

 ![333763-image.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/6/d/66d61f1aed29a0053d915b5a97c13452acd2e047.png)

- WAN: Still my 1st computer hosting the game server uses UDP broadcasting to try to find players to join, but no one else would be able to respond as my 2nd computer is on external IP and subnet.

 ![333764-image-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/4/3/c430f7ecd9e4e82f8f8fb218f77a5cdd1f41d325.png)

So I then dig on internet, some posts say steam should be integrated for such case. I did follow to integrate with steam but not sure if anything goes wrong which I saw steamworks failure in unreal engine log.

> **[YouTube](https://www.youtube.com/watch?v=&list=&index=2)**
>
> Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

My question now is:  
Q1: What exactly steam does for my case? Like help taking UDP broadcasting on internet? If that’s the case,  
what steam .exe should be listening on my host computer? or none? and on which port? (I noticed steam.exe listening on TCP port 27036, 27060 , UDP port 27036, 49736). Does it look normal or missing something?

* * *

TCP 0.0.0.0:27036 xxxx:0 LISTENING  
[Steam.exe]

TCP 127.0.0.1:27060 xxxx:0 LISTENING  
[Steam.exe]

UDP 0.0.0.0:27036 _:_  
[Steam.exe]

UDP 0.0.0.0:49736 _:_  
[Steam.exe]

* * *

Is there any exact tutorial or doc that I can follow to check what went wrong?

Q2: How does the ‘normal’ unreal log file look like if the integration with steam works and their game can be accessed by players on the internet? Anybody can share ?
