Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-default server ports dont work #179

Closed
Azim opened this issue Nov 22, 2020 · 56 comments
Closed

Non-default server ports dont work #179

Azim opened this issue Nov 22, 2020 · 56 comments

Comments

@Azim
Copy link

Azim commented Nov 22, 2020

Bug Report

Base Information

  • Server: Windows Server 2012
  • Impostor Version: dev build 4ebba13
  • Among Us Version: v2020.10.22s

I confirm:

  • [*] that I have searched for an existing bug report for this issue.

Symptoms

When using non-default server port, the clients are unable to connect to existing lobbies, while are still able to create new lobbies.
image

Reproduction

  1. Create a server with non-default port (i used 27777)
  2. Create a lobby on said server
  3. Noone is able to join that lobby, since they get this error:
    image
@dimaguy
Copy link
Contributor

dimaguy commented Nov 22, 2020

This error is not because of the port.
Did you set public ip to something other than 0.0.0.0 and 192.x.x.x. or 127.0.0.1?
Please refer to this documentation (keep in mind that this troubleshooting is yet to be accepted in a PR, hence it being in a forked repo)

@Azim
Copy link
Author

Azim commented Nov 22, 2020

Did you set public ip to something other than 0.0.0.0 and 192.x.x.x. or 127.0.0.1?

yes

Please refer to this documentation (keep in mind that this troubleshooting is yet to be accepted in a PR, hence it being in a forked repo)

i will take a look, but the issue disappeared when i switched server to use default port, so there's that

@dimaguy
Copy link
Contributor

dimaguy commented Nov 22, 2020

You could have missed something in the firewall or the nat forwardings

@Azim
Copy link
Author

Azim commented Nov 22, 2020

You could have missed something in the firewall or the nat forwardings

i did not, i followed the guide carefully.

@dimaguy
Copy link
Contributor

dimaguy commented Nov 22, 2020

I can assure you that non default ports work. As long as the public port matches the port that machines connect to

@Azim
Copy link
Author

Azim commented Nov 22, 2020

I can assure you that non default ports work. As long as the public port matches the port that machines connect to

then why do you think i made an effort to create an issue here?

@dimaguy
Copy link
Contributor

dimaguy commented Nov 22, 2020

No idea. Generally people go on discord for this kind of stuff

@dimaguy
Copy link
Contributor

dimaguy commented Nov 22, 2020

Also one thing. Did you use the website or the desktop patcher to generate the regioninfo.dat?

@Azim
Copy link
Author

Azim commented Nov 22, 2020

Also one thing. Did you use the website or the desktop patcher to generate the regioninfo.dat?

build\Impostor-Patcher_1.2.2-ci.117_win-x64.zip from here:
https://ci.appveyor.com/project/Impostor/Impostor/branch/dev/artifacts

@Chicken
Copy link

Chicken commented Nov 22, 2020

Server: ubuntu 20.04 LTS x86_64
Impostor Version: dev build 4ebba13
Among Us version: v2020.11.4s
Desktop patcher

Can reproduce this issue on my server by using another port instead of the default one.

@dimaguy
Copy link
Contributor

dimaguy commented Nov 22, 2020

Use this website: https://impostor.github.io/Impostor/

@dimaguy
Copy link
Contributor

dimaguy commented Nov 22, 2020

Server: ubuntu 20.04 LTS x86_64
Impostor Version: dev build 4ebba13
Among Us version: v2020.11.4s
Desktop patcher

Can reproduce this issue on my server by using another port instead of the default one.

Did you follow the troubleshooting steps I linked above?

@Chicken
Copy link

Chicken commented Nov 22, 2020

Yes. I have the server working under the normal port. I'm using the public ip of my server and the port is open on ufw for tcp/udp.
Edit: also I don't have port forwarding as the ipv4 is dedicated for the server.

@Azim
Copy link
Author

Azim commented Nov 22, 2020

Use this website: https://impostor.github.io/Impostor/

just tested with it, and the issue persists

@dimaguy
Copy link
Contributor

dimaguy commented Nov 22, 2020

Yes. I have the server working under the normal port. I'm using the public ip of my server and the port is open on ufw for tcp/udp.
Edit: also I don't have port forwarding as the ipv4 is dedicated for the server.

Could you quickly test with ufw disabled

@dimaguy
Copy link
Contributor

dimaguy commented Nov 22, 2020

Use this website: https://impostor.github.io/Impostor/

just tested with it, and the issue persists

Well Ive just received prints of a friend that doesnt have github but was reading this issue and it was working correctly. Im on mobile rm but I can link the images later to prove it working

@Azim
Copy link
Author

Azim commented Nov 22, 2020

Use this website: https://impostor.github.io/Impostor/

just tested with it, and the issue persists

Well Ive just received prints of a friend that doesnt have github but was reading this issue and it was working correctly. Im on mobile rm but I can link the images later to prove it working

sure go ahead

@Chicken
Copy link

Chicken commented Nov 22, 2020

Still having the issue even when ufw disabled

@dimaguy
Copy link
Contributor

dimaguy commented Nov 22, 2020

Still having the issue even when ufw disabled

Could you share your config partially censoring the public ip

@dimaguy
Copy link
Contributor

dimaguy commented Nov 22, 2020

@Azim you too please ^

@Chicken
Copy link

Chicken commented Nov 22, 2020

{
  "Server": {
    "PublicIp": "5.189.***.***",
    "PublicPort": 22022,
    "ListenIp": "0.0.0.0",
    "ListenPort": 22022
  },
  "AntiCheat": {
    "BanIpFromGame": true
  }
}

@Azim
Copy link
Author

Azim commented Nov 22, 2020

This works:

{
  "Server": {
    "PublicIp": "146.66.***.***",
    "PublicPort": 22023,
    "ListenIp": "0.0.0.0",
    "ListenPort": 22023
  },
  "AntiCheat": {
    "BanIpFromGame": true
  }
}

This doesnt:

{
  "Server": {
    "PublicIp": "146.66.***.***",
    "PublicPort": 27777,
    "ListenIp": "0.0.0.0",
    "ListenPort": 27777
  },
  "AntiCheat": {
    "BanIpFromGame": true
  }
}

@dimaguy
Copy link
Contributor

dimaguy commented Nov 22, 2020

This works:

{
  "Server": {
    "PublicIp": "146.66.***.***",
    "PublicPort": 22023,
    "ListenIp": "0.0.0.0",
    "ListenPort": 22023
  },
  "AntiCheat": {
    "BanIpFromGame": true
  }
}

This doesnt:

{
  "Server": {
    "PublicIp": "146.66.***.***",
    "PublicPort": 27777,
    "ListenIp": "0.0.0.0",
    "ListenPort": 27777
  },
  "AntiCheat": {
    "BanIpFromGame": true
  }
}

Could you send me a pic with the rule youve done in the router

@Azim
Copy link
Author

Azim commented Nov 22, 2020

Could you send me a pic with the rule youve done in the router

are you implying i dont know how to port forward?
The rules are identical, with only difference being that for one i created a fresh rule with only port 22023, and for other i have a range 25000-28000

@Chicken
Copy link

Chicken commented Nov 22, 2020

ss

I don't have a router in between because it's a vps with dedicated ipv4 but heres my identical ufw rules anyway.

@dimaguy
Copy link
Contributor

dimaguy commented Nov 22, 2020

Could you send me a pic with the rule youve done in the router

are you implying i dont know how to port forward?
The rules are identical, with only difference being that for one i created a fresh rule with only port 22023, and for other i have a range 25000-28000

No, I am not implying anything. Im asking for the pic

@dimaguy
Copy link
Contributor

dimaguy commented Nov 22, 2020

ss

I don't have a router in between because it's a vps with dedicated ipv4 but heres my identical ufw rules anyway.

I dont see the protocol in that pic

@Chicken
Copy link

Chicken commented Nov 22, 2020

Without protocol = tcp/udp

@dimaguy
Copy link
Contributor

dimaguy commented Nov 22, 2020

imagem
owo whats this? Impostor in a non-standard port?

@Chicken
Copy link

Chicken commented Nov 22, 2020

Maybe try running the test with someone and not just everything running on the same machine. (also how does one even open 2 clients so I could test this)

@Azim
Copy link
Author

Azim commented Nov 22, 2020

owo whats this? Impostor in a non-standard port?

this doesnt anyhow help nor prove your point - both clients and server are running on the same machine

@dimaguy
Copy link
Contributor

dimaguy commented Nov 22, 2020

Well but that still doesnt change the fact THAT IS IS USING A NON DEFAULT PORT.
As far as I know, that means that non-default server ports DO WORK

@Azim
Copy link
Author

Azim commented Nov 22, 2020

As far as I know, that means that non-default server ports DO WORK

it really doesnt

@dimaguy
Copy link
Contributor

dimaguy commented Nov 22, 2020

As far as I know, that means that non-default server ports DO WORK

it really doesnt

How so?
I mean, the traffic leaves and enters in that port... therefore it means they are working
Even if it is localhost, the traffic still uses that port

@Chicken
Copy link

Chicken commented Nov 22, 2020

If you believe so. Why would it not work for us? The first user is able to connect and create a lobby but second user isn't able to join it. That proves that the port is open and forwarded correctly but something is still wrong.

@Azim
Copy link
Author

Azim commented Nov 22, 2020

How so?
I mean, the traffic leaves and enters in that port... therefore it means they are working
Even if it is localhost, the traffic still uses that port

becouse in both reports the server is running on the different machine while you run it locally, and after that you are claiming that it works on your side, even though you couldnt bother to reproduce it properly?

@dimaguy
Copy link
Contributor

dimaguy commented Nov 22, 2020

If you believe so. Why would it not work for us? The first user is able to connect and create a lobby but second user isn't able to join it. That proves that the port is open and forwarded correctly but something is still wrong.

Lets see... hmmm that still means that the ports are working. If at least one can connect they are working

@dimaguy
Copy link
Contributor

dimaguy commented Nov 22, 2020

How so?
I mean, the traffic leaves and enters in that port... therefore it means they are working
Even if it is localhost, the traffic still uses that port

becouse in both reports the server is running on the different machine while you run it locally, and after that you are claiming that it works on your side, even though you couldnt bother to reproduce it properly?

Give me money and Ill reproduce it with 2 machines. better yet how about I open a server on a non standard port and make you connect to it

@Azim
Copy link
Author

Azim commented Nov 22, 2020

better yet how about I open a server on a non standard port and make you connect to it

sounds good to me

@Azim
Copy link
Author

Azim commented Nov 22, 2020

this machine is running impostor 1.1.0 so make sure you are not running beta

which is outdated and can not be connected to by the version in question

@dimaguy
Copy link
Contributor

dimaguy commented Nov 22, 2020

this machine is running impostor 1.1.0 so make sure you are not running beta

which is outdated and can not be connected to by the version in question

Hmm well then all I can say is that Impostor has no way of distinguishing lan and wan. So port behaviour should be the same

@Azim
Copy link
Author

Azim commented Nov 22, 2020

Hmm well then all I can say is that Impostor has no way of distinguishing lan and wan. So port behaviour should be the same

just put some effort and properly try to reproduce the bug before saying that it isnt a bug?

@dimaguy
Copy link
Contributor

dimaguy commented Nov 22, 2020

Hmm well then all I can say is that Impostor has no way of distinguishing lan and wan. So port behaviour should be the same

just put some effort and properly try to reproduce the bug before saying that it isnt a bug?

I reproduced it on the needed environment. there is really no reason for me to pull up another machine as this behavior is known and generally the problem is the human and some mistake.
NOTE: Behaviour in localhost is 100% the same as if you were using the internet

@dimaguy
Copy link
Contributor

dimaguy commented Nov 22, 2020

Also you never showed me your router port forward allocation

@Chicken
Copy link

Chicken commented Nov 22, 2020

Well could you atleast tell me how to open 2 clients at the same because steam doesn't seem to like it.

@dimaguy
Copy link
Contributor

dimaguy commented Nov 22, 2020

Well could you atleast tell me how to open 2 clients at the same because steam doesn't seem to like it.

Get Itch.io version or android emulator

@Azim
Copy link
Author

Azim commented Nov 22, 2020

I reproduced it on the needed environment.

on the wrong Impostor server version built for different client version

this behavior is known and generally the problem is the human and some mistake.

then why would it work on defaul port and not on the custom one, if all the other factors (port forwarding, etc) are accounted for?

@dimaguy
Copy link
Contributor

dimaguy commented Nov 22, 2020

I reproduced it on the needed environment.

on the wrong Impostor server version built for different client version

Nop, if you see the print I sent the one there is 1.2.2

this behavior is known and generally the problem is the human and some mistake.

then why would it work on defaul port and not on the custom one, if all the other factors (port forwarding, etc) are accounted for?

Then someone needs to go back to networking 101

@Azim
Copy link
Author

Azim commented Nov 22, 2020

Nop, if you see the print I sent the one there is 1.2.2

but the one you invited me to join clearly wasnt

@dimaguy
Copy link
Contributor

dimaguy commented Nov 22, 2020

Nop, if you see the print I sent the one there is 1.2.2

but the one you invited me to join clearly wasnt

And? I wouldnt send you to my main machine lel.
I sent you an ip of a vps I had running Pterodactyl

@Azim
Copy link
Author

Azim commented Nov 22, 2020

And? I wouldnt send you to my main machine lel.
I sent you an ip of a vps I had running Pterodactyl

then how does it help troubleshoot the issue at all? you are opposite of helpful here

@dimaguy
Copy link
Contributor

dimaguy commented Nov 22, 2020

And? I wouldnt send you to my main machine lel.
I sent you an ip of a vps I had running Pterodactyl

then how does it help troubleshoot the issue at all? you are opposite of helpful here

You are the opposite of nice here. I already told you the fault is somewhere in between you, the configurations, your router or the patcher. and not in the main subject of this issue

@Azim
Copy link
Author

Azim commented Nov 22, 2020

You are the opposite of nice here. I already told you the fault is somewhere in between you, the configurations, your router or the patcher. and not in the main subject of this issue

oh excuse me, your highness, would you be so kind to properly reproduce the issue before throwing out such accusations?

@dimaguy
Copy link
Contributor

dimaguy commented Nov 22, 2020

You are the opposite of nice here. I already told you the fault is somewhere in between you, the configurations, your router or the patcher. and not in the main subject of this issue

oh excuse me, your highness, would you be so kind to properly reproduce the issue before throwing out such accusations?

I did, the screenshot proves it. I dont need to whip up more machines to prove my point

@AeonLucid
Copy link
Collaborator

Please join the discord server in the readme. GitHub issues are not meant for conversations.

@Impostor Impostor locked and limited conversation to collaborators Nov 22, 2020
@AeonLucid
Copy link
Collaborator

AeonLucid commented Nov 22, 2020

Not an Impostor issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants