Setting a LAN server on Linux [Solved]

Post Reply
User avatar
Lord_Vlad
Member
Posts: 112
Joined: Thu Jul 20, 2017 07:58

Setting a LAN server on Linux [Solved]

by Lord_Vlad » Post

Hello, I'm with some friends and I'd like to set up a LAN server, I'm on linux. So i check the "host server" box and I get my IP on the net. But even with the good IP it doesn't seem to connect.

My friend's computer works with windows. maybe it changes stuff.
Last edited by Lord_Vlad on Mon Aug 07, 2017 17:21, edited 1 time in total.

User avatar
rubenwardy
Moderator
Posts: 6978
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

Re: Setting a LAN server on Linux, getting windows comp to j

by rubenwardy » Post

it doesnt matter.

Make sure you get your internal ip. run ifconfig and look for an ip starting with 192.168
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
Stix
Member
Posts: 1385
Joined: Fri Aug 04, 2017 14:19
IRC: nil
In-game: Stix [+alts]
Location: USA

Re: Setting a LAN server on Linux, getting windows comp to j

by Stix » Post

run "ifconfig -a" to be exact
Hey, what can i say? I'm the bad guy.

User avatar
rubenwardy
Moderator
Posts: 6978
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

Re: Setting a LAN server on Linux, getting windows comp to j

by rubenwardy » Post

for example:

Code: Select all

wlp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.3  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::8d4c:d652:80c8:a2f6  prefixlen 64  scopeid 0x20<link>
        ether b0:c0:90:2c:85:f0  txqueuelen 1000  (Ethernet)
        RX packets 24  bytes 3272 (3.2 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 49  bytes 7285 (7.2 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
the IP address is 192.168.0.3
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
Stix
Member
Posts: 1385
Joined: Fri Aug 04, 2017 14:19
IRC: nil
In-game: Stix [+alts]
Location: USA

Re: Setting a LAN server on Linux, getting windows comp to j

by Stix » Post

ip's dont necesarilly start with "192.168" at my house the ip's start with 10.1.2
Hey, what can i say? I'm the bad guy.

User avatar
rubenwardy
Moderator
Posts: 6978
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

Re: Setting a LAN server on Linux, getting windows comp to j

by rubenwardy » Post

Stix wrote:ip's dont necesarilly start with "192.168" at my house the ip's start with 10.1.2
I know, however it's the most likely case and I'd rather not complicate it further
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
Stix
Member
Posts: 1385
Joined: Fri Aug 04, 2017 14:19
IRC: nil
In-game: Stix [+alts]
Location: USA

Re: Setting a LAN server on Linux, getting windows comp to j

by Stix » Post

@Lord_Vlad make sure that your freinds type on the correct ip and adress port before they connect.
rubenwardy wrote:
Stix wrote:ip's dont necesarilly start with "192.168" at my house the ip's start with 10.1.2
I know, however it's the most likely case and I'd rather not complicate it further
@rubenwardy gotcha.
Hey, what can i say? I'm the bad guy.

User avatar
Lord_Vlad
Member
Posts: 112
Joined: Thu Jul 20, 2017 07:58

Re: Setting a LAN server on Linux, getting windows comp to j

by Lord_Vlad » Post

Code: Select all

2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 78:e7:d1:d6:38:2a brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.30/24 brd 192.168.1.255 scope global ens33
       valid_lft forever preferred_lft forever
    inet6 2a02:a03f:309e:ba00:297e:dbc2:5d37:9d5b/64 scope global mngtmpaddr noprefixroute dynamic 
       valid_lft 345626sec preferred_lft 345626sec
    inet6 2a02:a03f:309b:d700:50b6:d2d0:7c2c:b5c9/64 scope global mngtmpaddr noprefixroute dynamic 
       valid_lft 255302sec preferred_lft 255302sec
    inet6 fe80::7f12:63a:5378:85a1/64 scope link 
       valid_lft forever preferred_lft forever
As you can see here the adress ends by /24 ... and that seems to make minetest not want it, somehow.
No solution to this ?

Edit : the adress without the /24 worked, case closed.

Thanks a lot.

Post Reply

Who is online

Users browsing this forum: No registered users and 43 guests