Unable to access server from Multiplayer menu

We've posted an important announcement regarding the current situation and the future of the game: Announcement

  • Unable to access server from Multiplayer menu

    I'm having trouble accessing my server from the Multiplayer menu.

    I have these ports forwarded: 4254,4255,4256,4257,4258,4259,27015
    I'm able to see the server in Steam under View > Servers > LAN, but not in "Internet" or in-game under Multiplayer.

    Here is my server.properties, any ideas why its not working?

    Source Code

    1. admins=
    2. contact=
    3. database_mysql_connections=10
    4. database_mysql_database=DATABASE
    5. database_mysql_password=PASSWORD
    6. database_mysql_server_ip=192.168.0.10
    7. database_mysql_server_port=3306
    8. database_mysql_user=USER
    9. database_type=mysql
    10. plugins_enabled=true
    11. plugins_error_threshold=25
    12. plugins_jdk_path=
    13. rcon_enabled=false
    14. rcon_password=PASSWORD
    15. rcon_port=4253
    16. server_custom_logo=
    17. server_force_shutdown=false
    18. server_ip=192.168.0.10
    19. server_lan_mode=true
    20. server_list_visible=true
    21. server_memory=20480
    22. server_name=TownCraft
    23. server_password=
    24. server_port=4255
    25. server_query_ip=
    26. server_redirect_stdout=false
    27. server_restart_script=
    28. server_screen_title=TownCraft
    29. server_steam_port=4255
    30. server_use_temp_dir=false
    31. server_world_disabled_dungeons=
    32. server_world_disabled_npcs=
    33. server_world_disabled_watersources=
    34. server_world_generatecaves=true
    35. server_world_generatevegetations=true
    36. server_world_name=TownCraft
    37. server_world_oreamount=3
    38. server_world_seed=
    39. server_world_type=Normal
    40. settings_admins_allpermissions=true
    41. settings_animals_enabled=true
    42. settings_blacklisted=false
    43. settings_check_version=true
    44. settings_chests_drop_items=true
    45. settings_clear_cache=false
    46. settings_create_serverlog=true
    47. settings_create_worldbackup=true
    48. settings_deadnpc_despawntime=3600
    49. settings_deadplayers_creategrave=true
    50. settings_deadplayers_despawntime=3600
    51. settings_default_gamemode=survival
    52. settings_default_newplayer_group=
    53. settings_delete_old_serverlogs_hours=168
    54. settings_illegal_state_limit=25
    55. settings_item_despawntime=300
    56. settings_max_npc=100
    57. settings_max_players=64
    58. settings_monsters_enabled=true
    59. settings_npc_spawnrate=1.0
    60. settings_peacefulmode_enabled=false
    61. settings_pvp_enabled=false
    62. settings_rcon_forward_commands=true
    63. settings_rcon_forward_lua=true
    64. settings_reserved_names=true
    65. settings_save_world=true
    66. settings_show_luaplugins=true
    67. settings_show_playerdistance=true
    68. settings_show_playerplaytime=true
    69. settings_show_restart_notification=true
    70. settings_spawnprotection_duration=20
    71. settings_start_weather=
    72. settings_time_speed=60
    73. settings_tnt_spawn_items=true
    74. settings_weather_enabled=true
    75. settings_weather_preset=default
    76. settings_whitelisted=false
    77. webadmin=
    Display All
  • The setting server_lan_mode is set to true in this case, this indicates Steam that this is only a LAN server (so it won't show up in the public server list). In addition to that, the server_ip is set to your local ip (192.168.0.10), therefore the server only binds to the LAN ip (and is only accessible in your local network).

    Make sure to set server_lan_mode to false and remove the LAN ip from the server_ip field. If you're running the server on your local machine, just keep the server_ip field blank, then the server binds to all addresses ;)
  • The problem ended up being linuxgsm. It was giving me a bind error with server_lan_mode to false with no IP.

    It requires an IP address specified in the server.properties, and I had to modify their check_ip (in lgsm/functions folder) I removed all the lines, because that script fails the server running. With that check removed it worked fine!

    Thanks for the help red51!