Jump to content
  • 0

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


paranoidsurvivor

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  10/31/14
  • Last Seen:  

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.

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  01/29/18
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  10/29/14
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  10/31/14
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

have you tried to edit the LAN's clientinfo to just connect to your WAN? does it work? (probably won't)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  10/31/14
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  317
  • Reputation:   63
  • Joined:  11/13/11
  • Last Seen:  

I don't think it would work. You should choose one or the other.

Link to comment
Share on other sites

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.

×
×
  • Create New...