Jump to content
  • 0

How can I connect to my server by LAN (under same router) and WAN (over internet) simultaneously?


Question

Posted

Hello, good people.

 

I have a little server for me and my friends hosted on my PC. My host connection is perfect. I can make other computers connect to it via LAN (when they come over) or WAN (each at their homes), but not all cases at the same time. So, how can I have both someone coming over using my wifi and someone at home using the internet enter my server together?

 

Thanks for your time.

7 answers to this question

Recommended Posts

  • 0
Posted
On 30/10/2014 at 11:51 PM, Winz said:

conf/char_athena.conf:

//login_ip: 127.0.0.1

//bind_ip: 127.0.0.1

char_ip: your.WAN.IP.ADDRESS or your no-ip address

 

conf/map_athena.conf:

//char_ip: 127.0.0.1

//bind_ip: 127.0.0.1

map_ip: your.WAN.IP.ADDRESS or your no-ip address

 

for people outside your LAN, set their clientinfo to use your WAN IP address. For people in your LAN, you can set their clientinfo to use LAN or WAN IP address / No-ip address.

to make it simple, just set clientinfo, connecting using WAN ip address

I tried what you said. I edited those three files as you ordered and what I got was: Failed to connect to server

:(

Can you help? I just want to connect by WAN with my friends.

  • 0
Posted
On 11/2/2014 at 4:06 AM, paranoidsurvivor said:

I did, it doesn't. Tried IP and DNS. It can only connect with 192.168.1.102 as <address>, and only if the char_ip and map_ip are the same.

try to disable your firewall or open server ports

Posted

conf/char_athena.conf:

//login_ip: 127.0.0.1

//bind_ip: 127.0.0.1

char_ip: your.WAN.IP.ADDRESS or your no-ip address

 

conf/map_athena.conf:

//char_ip: 127.0.0.1

//bind_ip: 127.0.0.1

map_ip: your.WAN.IP.ADDRESS or your no-ip address

 

for people outside your LAN, set their clientinfo to use your WAN IP address. For people in your LAN, you can set their clientinfo to use LAN or WAN IP address / No-ip address.

to make it simple, just set clientinfo, connecting using WAN ip address

Posted

Thanks for the reply. The problem is:

 

If I put my WAN IP (from whatismyip.org) for char_ip and map_ip I can only get connection from the internet.

 

If I put LAN IP (from the router), I can get connections from my LAN only.

 

Exemple:

 conf/char_athena.conf:
//login_ip: 127.0.0.1
//bind_ip: 127.0.0.1
char_ip: your.WAN.IP.ADDRESS or your no-ip address

 conf/map_athena.conf:
//char_ip: 127.0.0.1
//bind_ip: 127.0.0.1
map_ip: your.WAN.IP.ADDRESS or your no-ip address

That'll connect great with players from the internet but will fail with computers here. (WAN on clientinfo.xml)

 conf/char_athena.conf:
//login_ip: 127.0.0.1
//bind_ip: 127.0.0.1
char_ip: 192.168.1.102

 conf/map_athena.conf:
//char_ip: 127.0.0.1
//bind_ip: 127.0.0.1
map_ip: 192.168.1.102

That'll connect great with computers here but will fail with players from the internet. (LAN on clientinfo.xml)

 

Using remote IP on clientinfo never works while inside my network.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...