DFJacob / AbioticFactorDedicatedServer

19 stars 1 forks source link

Having trouble joining my dedicated server #2

Open bov1ne opened 3 months ago

bov1ne commented 3 months ago

[posted this on forums too, maybe this is a better spot]

It's hosted on another pc on the lan. I can see it by adding the LAN IP in the Server Browser within steam/see the latency and refresh it, but when I go to join it, it just launches the game. If it's in the in game server browser..I can't see it/find it (search would be nice here). I tried 'switch to lan' but it doesn't see the server there.

Looking at the log of the server, it says it's bound and listening to port 7777/doesn't look like any issues. I have that all port forwarded. firewalls disabled on both machines.

since then:

I remote logged into my friends pc (not on my LAN) and was able to add the server using my WAN IP to their steam browser and it's the same situation. She can see the latency/refresh the server..name matches, but when you hit 'Join', all it does is launch the game and nothing. Also doesn't appear to be in the server list.

Also installed the server on the same PC I'm playing the game on/changed port forwarding. Same result though..can add server to steam browser using my loopback address but cannot join it/ see it in game/still doesn't show up on the lan search.

DFJacob commented 3 months ago

Can you see the server in the steam client server browser by filtering Abiotic Factor in the Internet or LAN tab? Sometimes adding the IP to the favorites gets it to show but may be missing some of the steam registration requirements.

If the server is running on another machine on your LAN, are you able to view/join the server if you run it on the same machine. You can achieve this easily by downloading the server in steam and running it (Will just have a random steamid as the server name).

bov1ne commented 3 months ago

I installed it locally (changed port forwarding also) and got the same result.

After playing around with it this morning, I noticed that on the 'LAN' tab, it does show up there, and the latency changes each time it's refreshed, but when I got to 'server info' it shows a 169 IP and latency says 'failed'. When I try to join the server from LAN, it says 'App id specified by the server doesn't exist'. It doesn't show up in the Internet tab at all. I tried adding the IP to my favorites by both the actual LAN ip and also the loopback address..doesn't matter. Same result with LAN tab each time.

confirmed when I close server itself, it immediately is removed from LAN tab. When I restart server, it immediately shows up with a valid latency, but then says 169 IP + failed when you go into server info.

On a whim I went to ncpa.cpl->disabled my VMware & TAP adapter NICs. restarted the server and I noticed LAN is now showing a routable IP (my correct LAN). retried game -> success. I shouldn't have to do that to play the game though, I've never had to do that with any other game before.

After a bit more testing I see what's happening, if I only enable my 'Ethernet 2' adapter, which is a disconnected TAP-Windows V9/used by a VPN which isn't connected..the LAN in steam is pulling that 169 IP from that adapter when the server starts, not from 'Ethernet 1' which is my LAN adapter/primary method of connecting to WAN when I'm not using a VPN. Again - I only have this problem in this game, so I suspect it's the game somehow :) let me know if I can help by sending a log or something. In the meantime I'll keep that adapter disabled when I want to play.

When I tried this with my friend, she couldn't join the server through steam browser..it would load game and nothing. It did show up in Internet tab though. when we tried joining in game through the list (a painful process) - it worked. consider adding a search to that in game list please :) seems like joining through the steam browser is unreliable

DFJacob commented 3 months ago

Unreal also has a launch parameter for assigning the server a specific IP address called -multihome eg. -multihome=192.168.1.10. Wold that help with your VM/Ethernet issue?

Currently joining through the steam client's server browser is unsupported, we're planning on adding search/filter options for the in-game browser

3x00 commented 3 months ago

I have the same problem, I can find my server on steam client's server browser, but can't find it in the game browser. by the way, I want to know the format of startup argument "-ServerPassword=" is how to replace, the password need "" or not?

titanbubu commented 3 months ago

@3x00 @bov1ne Are you guys confirmed port forwarded on both 7777 and 27015? The second port is the steam query port for showing up on game browsers.

Oxsynn commented 3 months ago

I am also having this issue. The server did show up last night (only in the LAN tab). But after applying the hotfix to both client and server, the server doesn't show up in the in-game, only in the steam browser if I manually add the IP.

Some context: Server is on my LAN, doesn't show up in either tab in the ingame browser. I've forwarded the ports and confirmed that the ports are open via nmap (notably, they come up as filtered, I assume this is because I forwarded the ports as TCP/UDP, and usually UDP shows as filtered)

I hope direct connect is a planned feature, I feel like that tends to resolve most issues like this (and it allows custom ports for added security!)

bov1ne commented 3 months ago

I'm definitely port forwarding to the IP of the server. I'm not having any game stopping problems anymore now that I understand the steam browser is not currently supported and I keep that adapter disabled (I haven't tried the multihome parm yet). When I tested things now, hosting it on both my local machine and another machine on my Lan, I was able to join either server from my friend's remote location (outside of my lan) using the in game UI, and from my own PC. One thing I noticed is the server doesn't show up for me in the 'Internet' tab of the game, only in the 'LAN'. My friend was able to see/search me in Internet just fine though, but I could see someone getting confused when they see an empty list after searching within Internet and can't join their server until they look for it in LAN.

@3x00 the quotes in the doc I found confusing too :) I have quotes around server name, but not on password on the script that currently works fine. I think I did test without quotes on server name and it was fine though.

3x00 commented 3 months ago

I guess the problem is my server have no public ip, I used the other vps to reverse proxy my server port 7777 and 27015, the info to steam (I gusee) is via my server's ip, and steam check to my server is impossiable, but if check the server via my vps's ip is ok.

titanbubu commented 3 months ago

https://www.yougetsignal.com/tools/open-ports/

If you're hosting on a Windows machine you always have to quadruple check some program is not blocking your port requests to that machine. Built in windows firewall, Anti virus, and more can get in the way of your machine getting the public IP for that port.

3x00 commented 3 months ago

@titanbubu no, the problem is my server doesn't have public ip, my server is in a huge LAN.

titanbubu commented 3 months ago

You do not need your host to be connected directly to the modem to host ie getting the entire public IP. Mine is in a LAN and it works just fine. Port forwarding essentially mimics having the public IP because that traffic is forwarded to that machine.

3x00 commented 3 months ago

您不需要将主机直接连接到调制解调器来托管,即获取整个公共 IP。 我的在局域网中并且工作得很好。 端口转发本质上模仿了公共 IP,因为流量被转发到该机器。

emmm, my network is in the operator's LAN, it just can send link from inside and it can't be linking from outside.

titanbubu commented 3 months ago

If you're in a managed network such as an apartment complex you have multiple routers between you and the wan IP. They all need to have a firewall/networking rule to forward the two ports towards your router. You're kind of screwed but you can call your network support line and see if they will do it. It's unlikely. Sorry dude. You have to get your own Internet connection.

3x00 commented 3 months ago

yep, so I use a vps to proxy my server's port, it works on the other game enshrouded, but that game can use steam client's server browser to connect the game server directly, so I think this is the solution.

wkndr commented 3 months ago

Successfully started dedicated server by systemd unit, it is visible but connection ends up by "fleming" error. Then I tried to start sh-file directly using utility named screen and successfully connected to my server. Currently can't figure out true cause

xxlio109 commented 3 months ago

I have the same problem, I can't join a dedicated server created in my LAN, but my friends can join a dedicated server created in my LAN through the steam game server.

Zoss0 commented 2 months ago

yep, so I use a vps to proxy my server's port, it works on the other game enshrouded, but that game can use steam client's server browser to connect the game server directly, so I think this is the solution.

I've got the same issue. We've also played the same thing together. I use Rathole as my reverse proxy and punch my UDP traffic out to my VPS.