Author Topic: Users have same ip addresses  (Read 5953 times)

0 Members and 1 Guest are viewing this topic.

Offline Elix

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Users have same ip addresses
« on: 09 October, 2008, 19:02:50 »
Strange bug in 0.4.1.1-posix (run on freebsd).

After some days hub start to see many users under same ip, but ips are different!
Restart helps, but every day restarts isn't a good idea...

PtokaX forum

Users have same ip addresses
« on: 09 October, 2008, 19:02:50 »

Offline ATAG

  • Scripter
  • Double Ace
  • ******
  • Posts: 112
  • Karma: +14/-0
  • secret things
    • Metin2 Hungarian Forum
Re: Users have same ip addresses
« Reply #1 on: 09 October, 2008, 19:23:38 »
We run 0.4.1.1 on ubuntu and gentoo with several thousand users but I never faced this problem. Can you show some example?

Offline Elix

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: Users have same ip addresses
« Reply #2 on: 12 October, 2008, 18:35:46 »
Today it happened again.
I see many same ips in user list. When i check ips using lua script, i see same addresses too.

Perhaps this is related to option #53 (Check IP in commands). Now i turned it on, perhaps this will help.

Also, how can i view some debug log?

Offline ATAG

  • Scripter
  • Double Ace
  • ******
  • Posts: 112
  • Karma: +14/-0
  • secret things
    • Metin2 Hungarian Forum
Re: Users have same ip addresses
« Reply #3 on: 12 October, 2008, 23:28:13 »
Also, how can i view some debug log?
With the UDP Debug Receiver and the "!debug <udp_port>" command :)

Offline Elix

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: Users have same ip addresses
« Reply #4 on: 14 October, 2008, 18:29:31 »
Nothing... Debug log is empty.
Also this bug goes every two days, and i restart a hub.
« Last Edit: 14 October, 2008, 18:33:52 by Elix »

Offline Elix

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: Users have same ip addresses
« Reply #5 on: 15 October, 2008, 04:28:18 »
All scripts i wrote myself :)

it appears that the number of users with the same address is no more than setting #112 - Maximum users from same IP.

I don't think that the error was in one script, because all the scripts see user with one address, although it should be another.
And hub sends $UserIP with this ip too.
« Last Edit: 15 October, 2008, 04:30:28 by Elix »

Offline ATAG

  • Scripter
  • Double Ace
  • ******
  • Posts: 112
  • Karma: +14/-0
  • secret things
    • Metin2 Hungarian Forum
Re: Users have same ip addresses
« Reply #6 on: 15 October, 2008, 14:24:36 »
Have you got some compile warnings?

Offline Snooze

  • Scripter
  • Viking
  • ******
  • Posts: 606
  • Karma: +54/-3
    • DiXBoT Website
Re: Users have same ip addresses
« Reply #7 on: 17 October, 2008, 16:57:27 »
This could be done by a simple "firewall" and/or "router" error config, either hardware or software.
I suggest checking both.

/Snooze

Offline Elix

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: Users have same ip addresses
« Reply #8 on: 21 November, 2008, 13:13:14 »
Again :(

In debug:

19:11:06 - [ERR] accept() for port 411 has returned an INVALID_SOCKET.
19:11:07 - [ERR] accept() for port 411 has returned an INVALID_SOCKET.
19:11:08 - [ERR] accept() for port 411 has returned an INVALID_SOCKET.
19:11:09 - [ERR] accept() for port 411 has returned an INVALID_SOCKET.
19:11:10 - [ERR] accept() for port 411 has returned an INVALID_SOCKET.
19:11:11 - [ERR] accept() for port 411 has returned an INVALID_SOCKET.
19:11:12 - [ERR] accept() for port 411 has returned an INVALID_SOCKET.
19:11:13 - [ERR] accept() for port 411 has returned an INVALID_SOCKET.
19:11:14 - [ERR] accept() for port 411 has returned an INVALID_SOCKET.
19:11:15 - [ERR] accept() for port 411 has returned an INVALID_SOCKET.
19:11:16 - [ERR] accept() for port 411 has returned an INVALID_SOCKET.
19:11:17 - [ERR] accept() for port 411 has returned an INVALID_SOCKET.
19:11:18 - [ERR] accept() for port 411 has returned an INVALID_SOCKET.
19:11:19 - [ERR] accept() for port 411 has returned an INVALID_SOCKET.
...

Offline ?StIfFLEr??

  • Triple Ace
  • **
  • Posts: 241
  • Karma: +17/-63
Re: Users have same ip addresses
« Reply #9 on: 21 November, 2008, 14:16:53 »
Code: [Select]
With the UDP Debug Receiver and the "!debug <udp_port>" commandThanks ATAG
+1

Offline Elix

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: Users have same ip addresses
« Reply #10 on: 21 November, 2008, 20:52:12 »
I started ptokax on another server (freebsd too). 0 users, only me.

I see a lot of messages: "[ERR] accept() for port 411 has returned an INVALID_SOCKET" every one second.
What is it? :)

Offline ATAG

  • Scripter
  • Double Ace
  • ******
  • Posts: 112
  • Karma: +14/-0
  • secret things
    • Metin2 Hungarian Forum
Re: Users have same ip addresses
« Reply #11 on: 21 November, 2008, 22:19:37 »
Try higher port number then 1024...

Offline Elix

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: Users have same ip addresses
« Reply #12 on: 21 November, 2008, 22:58:19 »
Try higher port number then 1024...

[ERR] accept() for port 4000 has returned an INVALID_SOCKET
[ERR] accept() for port 56734 has returned an INVALID_SOCKET

This is very strange :)

Offline Elix

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: Users have same ip addresses
« Reply #13 on: 22 November, 2008, 17:34:27 »
Also, there are no error messages when hub runs on windows.

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 752
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
Re: Users have same ip addresses
« Reply #14 on: 22 November, 2008, 18:47:02 »
I am in no way a programmer but digging through the web I found that invalid_socket should not be returned under Unix. Look at this page.
Everything could have been anything else and it would have just as much meaning.

Offline ATAG

  • Scripter
  • Double Ace
  • ******
  • Posts: 112
  • Karma: +14/-0
  • secret things
    • Metin2 Hungarian Forum
Re: Users have same ip addresses
« Reply #15 on: 22 November, 2008, 23:06:31 »
You will get this message on any (but 2) errors in accept(). The "timering" (1 error/sec) is very interesting :)

PtokaX forum

Re: Users have same ip addresses
« Reply #15 on: 22 November, 2008, 23:06:31 »