PDA

View Full Version : Another Connection Refused.



wolfguy
01-28-2004, 07:51 PM
Both machines are Win XP boxes, Firewall disabled.

What I find odd is that I can connect to local host but if I use the machines IP, I get a connection refused... There is not firewall on this machined. So I am stuck.

I can connect via telnet from the local machine by my second machine can not. (again looks like a blasted firewall) But I am not finding it.

I think this is my D-Link router that is blocking the access but the previous version works fine using the 2 machine setup.
I have a D-Link 4 port router. (Open for ideas on this, there is nothing in its config that is firewall spacific but there is a spot to open EXTERNAL ports)

.net framework is on both machines.

Log File of MySEQ
01/28/2004 19:26:31:00 - MySEQ Version: 2.0.0
01/28/2004 19:26:31:01 - Loaded Prefs.Xml
01/28/2004 19:26:31:12 - Loading MacroQuestPanel
01/28/2004 19:26:31:32 - Creating the Docking Manager
01/28/2004 19:26:31:35 - Loading Bitmap into ImageList
01/28/2004 19:26:31:37 - Creating SpawnList Window
01/28/2004 19:26:31:50 - Creating Spawn Timer List
01/28/2004 19:26:31:51 - Creating MQConsole Window
01/28/2004 19:26:31:57 - Loading Position.Xml
01/28/2004 19:27:09:10 - Trying to Connect to Server: 192.168.1.2
01/28/2004 19:27:10:78 - Could not connect to the server: No connection could be made because the target machine actively refused it
01/28/2004 19:27:20:60 - Trying to Connect to Server: 127.0.0.1
01/28/2004 19:27:26:14 - Connected to Server: 127.0.0.1
01/28/2004 19:27:26:84 - Server Version: 2.0.0
01/28/2004 19:27:27:17 - Short Zone Name: (Bazaar)
01/28/2004 19:27:27:17 - Using Short Zone Name: (Bazaar)
01/28/2004 19:27:27:23 - Zone Map Loaded: .\maps\Bazaar.map
01/28/2004 19:28:01:65 - Disconnected from Server: 192.168.1.2
01/28/2004 19:28:01:65 - Trying to Connect to Server: 192.168.1.2
01/28/2004 19:28:02:65 - Could not connect to the server: No connection could be made because the target machine actively refused it


Log from other machine:

01/28/2004 19:23:07:77 - MySEQ Version: 2.0.0
01/28/2004 19:23:07:78 - Loaded Prefs.Xml
01/28/2004 19:23:07:93 - Loading MacroQuestPanel
01/28/2004 19:23:08:21 - Creating the Docking Manager
01/28/2004 19:23:08:25 - Loading Bitmap into ImageList
01/28/2004 19:23:08:27 - Creating SpawnList Window
01/28/2004 19:23:08:49 - Creating Spawn Timer List
01/28/2004 19:23:08:51 - Creating MQConsole Window
01/28/2004 19:23:08:59 - Loading Position.Xml
01/28/2004 19:23:24:09 - Trying to Connect to Server: 192.168.1.2
01/28/2004 19:23:25:16 - Could not connect to the server: No connection could be made because the target machine actively refused it
01/28/2004 19:33:33:978 - MySEQ Version: 2.0.1
01/28/2004 19:33:33:988 - Loaded Prefs.Xml
01/28/2004 19:33:34:129 - Loading MacroQuestPanel
01/28/2004 19:33:34:289 - Creating the Docking Manager
01/28/2004 19:33:34:339 - Loading Bitmap into ImageList
01/28/2004 19:33:34:349 - Creating SpawnList Window
01/28/2004 19:33:34:559 - Creating Spawn Timer List
01/28/2004 19:33:34:569 - Creating MQConsole Window
01/28/2004 19:33:34:649 - Loading Position.Xml
01/28/2004 19:33:47:698 - Trying to Connect to Server: 192.168.1.2
01/28/2004 19:33:48:880 - Could not connect to the server: No connection could be made because the target machine actively refused it


SEVER LOG
01/28/2004 18:52:01:34 - Entering LoadServer(D:\wseqsever\MySEQServer.Ini)
01/28/2004 18:52:01:39 - [Server Settings] - WindowTitle=Norton AntiVirus
01/28/2004 18:52:01:39 - [Server Settings] - Version=2.0.0
01/28/2004 18:52:01:40 - [Server Settings] - Port=5555
01/28/2004 18:52:01:40 - [Server Settings] - EQProgram=eqgame
01/28/2004 18:52:01:42 - [Memory Offsets 2.x] - ZoneAddr=7115228
01/28/2004 18:52:01:42 - [Memory Offsets 2.x] - TargetAddr=7518124
01/28/2004 18:52:01:43 - [Memory Offsets 2.x] - GroupAddr=7511280
01/28/2004 18:52:01:43 - [Memory Offsets 2.x] - SpawnAddr=7518056
01/28/2004 18:52:01:46 - [Memory Offsets 2.x] - ItemsAddr=7518060
01/28/2004 18:52:01:46 - [Memory Offsets 2.x] - PlayerInfoAddr=7518120
01/28/2004 18:52:01:46 - [Memory Offsets 2.x] - GuildsAddr=7536204
01/28/2004 18:52:01:48 - [Memory Offsets 2.x] - SpellsAddr=7886908
01/28/2004 18:52:01:48 - [End Offsets] - PlayerInfoEndOffset=7659
01/28/2004 18:52:01:50 - [End Offsets] - GroundItemEndOffset=68
01/28/2004 18:52:01:53 - [End Offsets] - SpawnInfoEndOffset=437
01/28/2004 18:52:01:53 - [End Offsets] - SpellListEndOffset=20036
01/28/2004 18:52:01:54 - [End Offsets] - ZoneInfoEndOffset=576
01/28/2004 18:52:01:56 - [PlayerInfo Offsets] - PlayerNameOffset=2
01/28/2004 18:52:01:56 - [SpawnInfo Offsets] - SpawnNextOffset=316
01/28/2004 18:52:01:57 - [GroundItem Offsets] - GroundItemNextOffset=4
01/28/2004 18:52:01:57 - [SpellManager Offsets] - SpellsOffset=36
01/28/2004 18:52:01:59 - Exiting LoadServer()
01/28/2004 18:52:01:60 - Entering frmMain
01/28/2004 18:52:01:67 - Entering StartServer
01/28/2004 18:52:01:75 - Starting Server on: 127.0.0.1
01/28/2004 18:52:01:76 - Entering in CSocketServer.Start()
01/28/2004 18:52:01:76 - Exiting in CSocketServer.Start()
01/28/2004 18:52:01:79 - Entering in CSocketServer.AcceptThread()
01/28/2004 18:52:01:81 - Listening for connection on port: 5555
01/28/2004 18:52:01:84 - Exiting StartServer
01/28/2004 18:52:01:84 - Entering ScanProcList
01/28/2004 18:52:01:85 - Entering SelectProcess
01/28/2004 18:52:01:89 - Exiting SelectProcess
01/28/2004 18:52:01:92 - Exiting ScanProcList
01/28/2004 18:52:01:93 - Exiting frmMain


Ok.. thats odd.. why is it listening on Local Host?
How do I change this?

MQSEQ2
01-28-2004, 07:58 PM
Don't use 127.0.0.1

wolfguy
01-28-2004, 08:03 PM
Ok... dumb question... the server goes to that automaticly.. how do I change that?

NovaUSC
01-28-2004, 09:06 PM
go here and read the info on setting in the IP address

http://seq.sourceforge.net/forums/showthread.php?s=&threadid=4642

slartibartfast
01-29-2004, 05:49 AM
Hmmm the server picks an address to listen to, so there is nothing a user can do to change the server behavior.


I had a quick look in the .Net help and found a reference for the local address "IPAddress.Any", which can be used to make a server listen on all available interfaces.

It may be better to use this for the server when creating the listener.

In cSocketServer.AcceptThread change

IPAddress localAddr = IPAddress.Parse(GetIpAddress);

IPAddress localAddr = IPAddress.Any;

<EDIT>
Hmm since this is supposed to be a generic sockets class maybe it would be better to use IPAddress.Any if no IPAddress is specified.


IPAddress localAddr;
if (GetIpAddress != null && GetIpAddress.Length > 0)
localAddr = IPAddress.Parse(GetIpAddress);
else
localAddr = IPAddress.Any;

Then change the

pSocketServer.Start(localIPAddress, settings.Port, ...

to

pSocketServer.Start(null, settings.Port, ...

</EDIT>

MQSEQ2
01-29-2004, 06:54 AM
Thanks Slart I will add that to the Server ASAP.

MQSEQ2
01-29-2004, 07:09 AM
Ok I added it and it appears to be working fine with that code with the local loopback and real IP address.

Thanks

FYI




IPAddress localAddr;
if (GetIpAddress != null && GetIpAddress.Length > 0)
localAddr = IPAddress.Parse(GetIpAddress);
else
localAddr = IPAddress.Any;


will only execute the localAddr = IPAddress.Any; code since IPAddress localAddr; is initialized without anything so it's allways null.

I tried several times and never could get it to hit localAddr = IPAddress.Parse(GetIpAddress);, I left it all in there so if it ever does it will be there.

wolfguy
01-29-2004, 11:01 PM
OK.. I'm tired and fustraighted...

I have same issue. From the machine SERVER is running on. I can connect to localhost but I still can not connect using the IP.

Using Telnet works to Local host but not the machines IP.

For some stupid reason My computer won't allow the connection.
The server will only allow local host to connect.

I know I am either doing something completely wrong of I have missed something some where.

It is something in the communications protocols because it works on local host but IP.

I redownloaded the beta version of the 2.0.1 server (1/28/04 date)

Port is 5555

Could this be my Router blocking port traffic?
If so, then why does the pre-2.0 version work.


Call me an idiot later... here is the newest sever log... there was a problem with the IP info..

01/29/2004 22:53:10:48 - Entering LoadServer(D:\wseqsever\MySEQServer.Ini)
01/29/2004 22:53:10:48 - [Server Settings] - WindowTitle=Norton AntiVirus
01/29/2004 22:53:10:50 - [Server Settings] - Version=2.0.0
01/29/2004 22:53:10:51 - [Server Settings] - Port=5555
01/29/2004 22:53:10:51 - [Server Settings] - EQProgram=eqgame
01/29/2004 22:53:10:51 - [Memory Offsets 2.x] - ZoneAddr=7115228
01/29/2004 22:53:10:51 - [Memory Offsets 2.x] - TargetAddr=7518124
01/29/2004 22:53:10:51 - [Memory Offsets 2.x] - GroupAddr=7511280
01/29/2004 22:53:10:53 - [Memory Offsets 2.x] - SpawnAddr=7518056
01/29/2004 22:53:10:53 - [Memory Offsets 2.x] - ItemsAddr=7518060
01/29/2004 22:53:10:53 - [Memory Offsets 2.x] - PlayerInfoAddr=7518120
01/29/2004 22:53:10:53 - [Memory Offsets 2.x] - GuildsAddr=7536204
01/29/2004 22:53:10:53 - [Memory Offsets 2.x] - SpellsAddr=7886908
01/29/2004 22:53:10:53 - [End Offsets] - PlayerInfoEndOffset=7659
01/29/2004 22:53:10:53 - [End Offsets] - GroundItemEndOffset=68
01/29/2004 22:53:10:53 - [End Offsets] - SpawnInfoEndOffset=437
01/29/2004 22:53:10:53 - [End Offsets] - SpellListEndOffset=20036
01/29/2004 22:53:10:53 - [End Offsets] - ZoneInfoEndOffset=576
01/29/2004 22:53:10:53 - [PlayerInfo Offsets] - PlayerNameOffset=2
01/29/2004 22:53:10:54 - [PlayerInfo Offsets] - SpawnInfoOffset=0
01/29/2004 22:53:10:54 - [SpawnInfo Offsets] - SpawnNextOffset=316
01/29/2004 22:53:10:54 - [GroundItem Offsets] - GroundItemNextOffset=4
01/29/2004 22:53:10:54 - [SpellManager Offsets] - SpellsOffset=36
01/29/2004 22:53:10:54 - Exiting LoadServer()
01/29/2004 22:53:10:54 - Entering frmMain
01/29/2004 22:53:10:54 - Entering StartServer
01/29/2004 22:53:10:57 - Starting Server on: 127.0.0.1
01/29/2004 22:53:10:57 - Entering in CSocketServer.Start()
01/29/2004 22:53:10:57 - Exiting in CSocketServer.Start()
01/29/2004 22:53:10:59 - Entering in CSocketServer.AcceptThread()
01/29/2004 22:53:10:60 - Listening for connection on port: 5555
01/29/2004 22:53:10:60 - Exiting StartServer
01/29/2004 22:53:10:60 - Entering ScanProcList
01/29/2004 22:53:10:62 - Entering SelectProcess
01/29/2004 22:53:10:62 - Exiting SelectProcess
01/29/2004 22:53:10:62 - Exiting ScanProcList
01/29/2004 22:53:10:62 - Exiting frmMain
01/29/2004 22:53:40:45 - Entering timScanProcList_Tick
01/29/2004 22:53:40:45 - Entering ScanProcList
01/29/2004 22:53:40:46 - Exiting ScanProcList
01/29/2004 22:53:40:46 - Exiting timScanProcList_Tick
01/29/2004 22:53:50:50 - Entering in CSocketServer.LocateSocketIndex()
01/29/2004 22:53:50:50 - Exiting in CSocketServer.LocateSocketIndex()
01/29/2004 22:53:50:50 - Located SocketIndex: 0
01/29/2004 22:53:50:50 - Using SocketIndex: 0
01/29/2004 22:53:50:50 - Trying to resolve Server IP Address
01/29/2004 22:53:50:50 - Error in Setting Server IP Address: Index and length must refer to a location within the string.
Parameter name: length
01/29/2004 22:53:50:50 - Opening SocketClient for Client:
01/29/2004 22:53:50:51 - Entering in CSocketClient.CSocketClient()
01/29/2004 22:53:50:51 - Entering in CSocketClient.Receive()
01/29/2004 22:53:50:53 - Exiting in CSocketClient.Receive()
01/29/2004 22:53:50:53 - Exiting in CSocketClient.CSocketClient()
01/29/2004 22:53:50:53 - Created the SocketClientList.
01/29/2004 22:53:50:53 - Entering AcceptHandler
01/29/2004 22:53:50:56 - Connection made with on port: 5555
01/29/2004 22:53:50:56 - Exiting AcceptHandler
01/29/2004 22:53:50:56 - Accepthandeler set for SocketClient.
01/29/2004 22:53:53:06 - Entering in CSocketClient.ReceiveComplete()
01/29/2004 22:53:53:06 - Entering MessageHandlerServer
01/29/2004 22:53:53:06 - Exiting MessageHandlerServer
01/29/2004 22:53:53:06 - Entering in CSocketClient.Receive()
01/29/2004 22:53:53:06 - Exiting in CSocketClient.Receive()
01/29/2004 22:53:53:06 - Exiting in CSocketClient.ReceiveComplete()
01/29/2004 22:53:53:21 - Entering in CSocketClient.ReceiveComplete()
01/29/2004 22:53:53:21 - Entering MessageHandlerServer
01/29/2004 22:53:53:21 - Entering in CSocketClient.Send(String)
01/29/2004 22:53:53:21 - Exiting in CSocketClient.Send(String)
01/29/2004 22:53:53:21 - Exiting MessageHandlerServer
01/29/2004 22:53:53:21 - Entering in CSocketClient.Receive()
01/29/2004 22:53:53:21 - Entering in CSocketClient.SendComplete()
01/29/2004 22:53:53:21 - Exiting in CSocketClient.Receive()
01/29/2004 22:53:53:21 - Exiting in CSocketClient.ReceiveComplete()
01/29/2004 22:53:53:21 - Exiting in CSocketClient.SendComplete()
01/29/2004 22:53:55:12 - Entering in CSocketClient.ReceiveComplete()
01/29/2004 22:53:55:12 - Entering MessageHandlerServer
01/29/2004 22:53:55:14 - Entering in CSocketClient.Send(Byte[])
01/29/2004 22:53:55:14 - Exiting in CSocketClient.Send(Byte[])
01/29/2004 22:53:55:14 - Exiting MessageHandlerServer
01/29/2004 22:53:55:14 - Entering in CSocketClient.Receive()
01/29/2004 22:53:55:14 - Entering in CSocketClient.SendComplete()
01/29/2004 22:53:55:14 - Exiting in CSocketClient.Receive()
01/29/2004 22:53:55:14 - Exiting in CSocketClient.ReceiveComplete()
01/29/2004 22:53:55:14 - Exiting in CSocketClient.SendComplete()
01/29/2004 22:53:55:98 - Entering in CSocketClient.ReceiveComplete()
01/29/2004 22:53:55:98 - Entering MessageHandlerServer
01/29/2004 22:53:55:98 - Exiting MessageHandlerServer
01/29/2004 22:53:55:98 - Entering in CSocketClient.Receive()
01/29/2004 22:53:55:98 - Exiting in CSocketClient.Receive()
01/29/2004 22:53:55:98 - Exiting in CSocketClient.ReceiveComplete()
01/29/2004 22:53:56:45 - Entering in CSocketClient.ReceiveComplete()
01/29/2004 22:53:56:45 - Entering MessageHandlerServer
01/29/2004 22:53:56:45 - Exiting MessageHandlerServer
01/29/2004 22:53:56:45 - Entering in CSocketClient.Receive()
01/29/2004 22:53:56:46 - Exiting in CSocketClient.Receive()
01/29/2004 22:53:56:46 - Exiting in CSocketClient.ReceiveComplete()
01/29/2004 22:53:58:95 - Entering in CSocketClient.ReceiveComplete()
01/29/2004 22:53:59:00 - Entering CloseHandler
01/29/2004 22:53:59:00 - Entering StopServer
01/29/2004 22:53:59:00 - Entering in CSocketServer.Dispose()
01/29/2004 22:53:59:00 - Entering in CSocketServer.Stop()
01/29/2004 22:53:59:00 - Aborting the accept thread
01/29/2004 22:53:59:00 - Exiting in CSocketServer.AcceptThread()
01/29/2004 22:53:59:01 - Disposing of all of the socket connections
01/29/2004 22:53:59:01 - Entering in CSocketClient.Dispose()
01/29/2004 22:53:59:01 - Entering in CSocketClient.Disconnect()
01/29/2004 22:53:59:01 - Exiting in CSocketClient.Disconnect()
01/29/2004 22:53:59:01 - Entering in CSocketServer.RemoveSocket()
01/29/2004 22:53:59:01 - Exiting in CSocketServer.RemoveSocket()
01/29/2004 22:53:59:01 - Exiting in CSocketClient.Dispose()
01/29/2004 22:53:59:01 - Waiting for all of the socket client objects to be destroyed
01/29/2004 22:53:59:01 - Clearing the buffer size and user arguments
01/29/2004 22:53:59:01 - Exiting in CSocketServer.Stop()
01/29/2004 22:53:59:01 - Exiting in CSocketServer.Dispose()
01/29/2004 22:53:59:01 - Entering StartServer
01/29/2004 22:53:59:03 - Starting Server on: 127.0.0.1
01/29/2004 22:53:59:03 - Entering in CSocketServer.Start()
01/29/2004 22:53:59:03 - Exiting in CSocketServer.Start()
01/29/2004 22:53:59:03 - Entering in CSocketServer.AcceptThread()
01/29/2004 22:53:59:03 - Listening for connection on port: 5555
01/29/2004 22:53:59:03 - Exiting StartServer
01/29/2004 22:53:59:03 - Listening for connection on port: 5555
01/29/2004 22:53:59:03 - Exiting StopServer
01/29/2004 22:53:59:03 - Entering CloseHandler
01/29/2004 22:53:59:03 - Entering in CSocketClient.Dispose()
01/29/2004 22:53:59:03 - Entering in CSocketClient.Disconnect()
01/29/2004 22:53:59:03 - Exiting in CSocketClient.Disconnect()
01/29/2004 22:53:59:03 - Entering in CSocketServer.RemoveSocket()
01/29/2004 22:53:59:03 - Exiting in CSocketServer.RemoveSocket()
01/29/2004 22:53:59:03 - Exiting in CSocketClient.Dispose()
01/29/2004 22:53:59:03 - Exiting in CSocketClient.ReceiveComplete()

wolfguy
01-29-2004, 11:07 PM
Ok.. I duplicated it with a Fresh install

1/29/2004 23:05:50:34 - Exiting in CSocketServer.LocateSocketIndex()
01/29/2004 23:05:50:34 - Located SocketIndex: 0
01/29/2004 23:05:50:34 - Using SocketIndex: 0
01/29/2004 23:05:50:34 - Trying to resolve Server IP Address
01/29/2004 23:05:50:34 - Error in Setting Server IP Address: Index and length must refer to a location within the string.
Parameter name: length
01/29/2004 23:05:50:34 - Opening SocketClient for Client:
01/29/2004 23:05:50:34 - Entering in CSocketClient.CSocketClient()


The IP error pops up when telneting in on localhost..

slartibartfast
01-30-2004, 04:53 AM
Dont worry about it at the moment wulfguy, you found a bug, which will hopefully be fixed in 2.0.2.


The pertinant part of the error log was:

01/29/2004 22:53:59:01 - Entering StartServer
01/29/2004 22:53:59:03 - Starting Server on: 127.0.0.1
01/29/2004 22:53:59:03 - Entering in CSocketServer.Start()

Since the server was listening on the private loop back address, and not its real public address, you would not be able to connect to the server from a 2nd machine.

Also you would not be able to connect using the real IP address from the server as that represents a different interface to the one the server is listening on.

The IPAddress.Any change should fix your problem, but you will either need to fix the code yourself, or wait for MQSEQ to release the next version.

MQSEQ2
01-30-2004, 06:18 AM
Slart is correct and hopefully 2.0.2 will fix your issue.

wolfguy
01-30-2004, 11:56 AM
OH... damn didn't realize that I did that.. and MYSEQ2 message said he added it so I thought it was in the beta that had the 1/28 date on it... silly me.

I'll shut up and wait on next version, thanks guys.

Iwannasee
01-30-2004, 07:01 PM
Originally posted by wolfguy
Port is 5555

I thought we were doing port 6969 with the 2.x stuff...

MQSEQ2
01-30-2004, 09:00 PM
We are doing Port 6969 but the original 2.0.0 was still set to 5555 but I fixed that

wolfguy
01-31-2004, 09:50 AM
Plus you can edit that number, but you have to remember to edit it in both the server and the client.

I tried the 2.0.2 version and its working wonderfully.