Skip to content

Question - Hosts file configuration #5597

@smadigan91

Description

@smadigan91

Hello,

I have been trying to figure out how to have remote friends join my local XMage server, but have not been able to figure out how yet.

Currently, without modifying my hosts file, when friends try to join using my public IP address, they see a window pop up that just says "Sean-PC" (my computer name) and they are unable to join. I am not really sure what this means. I am able to join using my public IP address using another computer in my house, but it is on the same network so I think that's why.

I am wondering, what entries need to be made in the /etc/hosts file on my computer vs. my friends computers?

My computer's name / host name: "Sean-PC"
My computer's public IP address: "139.68.81.23"
My computer's private IP address: "192.168.0.25"

Should I be adding any of this information to my / their hosts files? Or do I just need to add 127.0.0.1 localhost to my hosts file and have my friends include the -Djava.net.preferIPv4Stack=true argument for their client?

Thank you for your help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FAQInstructions to fix problemsquestion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions