Jump to content
  • 0

How to log into the server from distant computer


Mindslug

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  06/19/17
  • Last Seen:  

Hello wonderful people !

I've been toying around with rAthena a bit and everything works fine at the moment. In local. 

So, I'm trying to get anyone to access the server from a distance.

 

Here is what I've done :

[Let's consider 192.168.1.12 is my local IP and 12.23.4.5 my public IP]

on char_athena.conf 

// Login Server IP
// The character server connects to the login server using this IP address.
// NOTE: This is useful when you are running behind a firewall or are on
// a machine with multiple interfaces.
login_ip: 12.23.4.5

// The character server listens on the interface with this IP address.
// NOTE: This allows you to run multiple servers on multiple interfaces
// while using the same ports for each server.
//bind_ip: 127.0.0.1

// Login Server Port
login_port: 6900

// Character Server IP
// The IP address which clients will use to connect.
// Set this to what your server's public IP address is.
char_ip: 12.23.4.5

// Character Server Port
char_port: 6121

login_ip : 12.23.4.5 / Port : 6900

char_ip : 12.23.4.5 / Port : 6121

 

on map_athena.conf

// Character Server IP
// The map server connects to the character server using this IP address.
// NOTE: This is useful when you are running behind a firewall or are on
// a machine with multiple interfaces.
char_ip: 12.23.4.5

// The map server listens on the interface with this IP address.
// NOTE: This allows you to run multiple servers on multiple interfaces
// while using the same ports for each server.
//bind_ip: 127.0.0.1

// Character Server Port
char_port: 6121

// Map Server IP
// The IP address which clients will use to connect.
// Set this to what your server's public IP address is.
map_ip: 12.23.4.5

// Map Server Port
map_port: 5121

map_ip : 12.23.4.5 / port : 5121

char_ip : 12.23.4.5 / port 6121

 

on subnet_athena.conf

subnet: 255.255.255.0:12.23.4.5:12.23.4.5

I think I did nothing at all in inter_athena.conf which might be the problem but I'm not exactly sure of what I should be putting in it ?

 

[ More infos ]

I've forwarded ports 5121,6121 and 6900 on my router so that they lead to 192.168.1.12 (local IP). When I check on canyouseeme.org I've got a success message for every port on my adress :

Quote

Success: I can see your service on 12.23.4.5 on port (5121

Plus a message from running servers telling me that the connection with canyouseeme has been closed.

My clientinfo.xml is as follow :

<address>12.23.4.5</address>
          <port>6900</port>

Finally, said ports are allowed on Windows10 Firewall.

Impossible to connect to char_server and the map_server has issues to connect to char server (like it works after waiting for like 4 minutes and disconnects 5 seconds later)

Any ideas on what is wrong/I should change ?

Thanks in advance 

Edited by Mindslug
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   14
  • Joined:  06/13/16
  • Last Seen:  

1 hour ago, Mindslug said:

Well it was my fault,

It was possible to connect to the server from other computers just not from mine, because I had to put clientinfo.xml adress to local (which is logical and obvious, but I somehow failed to see that).

So yep, 127.0.0.1 on clientinfo.xml fixed that

No, it's not logical...

The correct answer is :

It didn't work because your Modem doesn't have NAT loopback configured or doesn't offer this capability.

source : https://docs.connectwise.com/ConnectWise_Control_Documentation/On-premises/On-premises_knowledge_base/Cannot_access_external_IP_address_from_LAN

 

Having 2 different client versions (one for local use one for other players)

is rather confusing... but well, you are not a professional,

since you play and host on the same machine.

 

But for the sake of other people having the same issue and doing it somewhat more professionally.

There are 2 solutions:

1. Configure NAT loopback on your local network modem

2. Habilis way (My ISPs modem is the stupidest modem ever, not allowing configure NAT....) So, I do it this way,

I have a domain name like MyMegaProfessionalRagnarokServer.com (It resolves to my External IP)

 

That all my classmates from my school use to connect to my server and play after school.

 

So, on the machine in my local network, I edit hosts file:

C:\Windows\System32\Drivers\etc\hosts

 

And I add this entry

192.168.0.101   MyMegaProfessionalRagnarokServer.com

where 192.168.0.101 is the ip on local network of the machine server is hosted on.

 

This way I have only 1 client.

Edited by Habilis
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

Can you give a screenshot of your console errors?

Have you also set the username and password on your database?

And try to use localhost ip on these:

char_athena.conf

// Login Server IP
// The character server connects to the login server using this IP address.
// NOTE: This is useful when you are running behind a firewall or are on
// a machine with multiple interfaces.
login_ip: 127.0.0.1

map_athena.conf

// Character Server IP
// The map server connects to the character server using this IP address.
// NOTE: This is useful when you are running behind a firewall or are on
// a machine with multiple interfaces.
char_ip: 127.0.0.1

subnet_athena.conf

subnet: 255.0.0.0:127.0.0.1:127.0.0.1

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  06/19/17
  • Last Seen:  

@Technoken

Thank you for your answer, I'll check your recommandations asap.

If still not working, I'll post some screenshots of the console errors.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   14
  • Joined:  06/13/16
  • Last Seen:  

It might be that you don't have NAT configured, therefore, you can't reach your external ip from the internal network...

If you run a website or CP on the same server can you reach it in the browser with your external ip?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  06/19/17
  • Last Seen:  

Well it was my fault,

It was possible to connect to the server from other computers just not from mine, because I had to put clientinfo.xml adress to local (which is logical and obvious, but I somehow failed to see that).

So yep, 127.0.0.1 on clientinfo.xml fixed that

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  06/19/17
  • Last Seen:  

1 hour ago, Habilis said:

No, it's not logical...

Well, it works and it makes sense so it is logical, I won't argue that it's not the best solution though.

 

So yep, my router doesn't seem to allow loopback so I decided to get a DDNS in order to only use one client as you advocate. Works perfectly.

I'll just add that if people have this issue and happen to know nothing about the concept of DDNS, they should just google it and there is a lot of free solutions + easy explanations on how to get started.

Then don't forget to edit your hosts as Habilis described just above.

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...