PDA

View Full Version : Socket Errors


Presumed Evil
24-01-2004, 01:25
Below is a snippet of the server log for the TS2 server I am having trouble with.

It is behind a router doing NAT, and ports 8767, 14534, and 51234 are all forwarded to the proper lan IP.

I'd like to be able to use the webpost features, but for some reason, though the features requiring 8767 and 14534 operate normally, webpost and 51234 do not. I've logged in as SA and set the webpost url to an "http://www.mywebsite.com/dir/dir/webpost.php" type page, but it can't seem to find what it needs... and only shows the internal IP of the LAN, and not the external IP of the server.

Any ideas from the TS2 gurus out there?




-------------- log started at 23-01-04 18:00 -------------
---------------------------------------------------------------
23-01-04 18:00:18,ALL,Info,server, Server init initialized
23-01-04 18:00:18,ALL,Info,server, Server version: 2.0.19.40 Win32
23-01-04 18:00:18,ALL,Info,server, Starting server with port: 8767
23-01-04 18:00:18,ERROR,All,SERVER, Server startup failed with port 8767, Exception: EIdSocketError.Socket Error # 10049
Cannot assign requested address.
23-01-04 18:00:19,ERROR,All,WEBINTERFACE, WebInterface startup failed with port 14534, Exception:Socket Error # 10049
Cannot assign requested address.
23-01-04 18:00:19,ERROR,All,TCPQUERY, TCPQuery startup failed with port 51234, Exception: Socket Error # 10049
Cannot assign requested address.
23-01-04 18:00:19,ALL,Info,server, Server init finished
23-01-04 18:00:56,ALL,Info,server, Server shutdown initialized
23-01-04 18:00:57,ALL,Info,server, Server shutdown finished
---------------------------------------------------------------
--------------- log ended at 23-01-04 18:00 --------------

Dummer Sack
24-01-2004, 13:45
You have propably set the BoundToIP in the server.ini to an invalid value (possibly your WAN IP which cannot work).
If you don't know what you are doing with BoundToIP leave it open.

Presumed Evil
24-01-2004, 20:38
I have not set the bound to ip option, and have left it blank because I knew that would not work.

Any other suggestions?


[debug]
MessageTypes=LMTALL
MessageDepths=LMDALL
[Main Config]
ExternalIPDectection=1
HTTPServer Port=14534
HTTPServer Enabled=1
DateTimeFormat=dd-mm-yyyy hh:nn:ss
TCPQueryPort=51234
BoundToIp=
[WebPost]
AdminEmail=admin@myisp.com
ISPLinkURL=na
ISPName=Private
ISPCountryNumber=2457
Enabled=1
PostURL=http://ts2.presumedevil.com/ts2/webpost.php
ListPublic=0
[log]
access=0

Dummer Sack
25-01-2004, 00:06
Originally posted by Presumed Evil
though the features requiring 8767 and 14534 operate normally, webpost and 51234 do not.
How does that come together with the log zou posted.
Originally posted by Presumed Evil
23-01-04 18:00:18,ERROR,All,SERVER, Server startup failed with port 8767, Exception: EIdSocketError.Socket Error # 10049
Cannot assign requested address.
23-01-04 18:00:19,ERROR,All,WEBINTERFACE, WebInterface startup failed with port 14534, Exception:Socket Error # 10049
Cannot assign requested address.
23-01-04 18:00:19,ERROR,All,TCPQUERY, TCPQuery startup failed with port 51234, Exception: Socket Error # 10049
Cannot assign requested address.
Here is clearly stated that all three services failed to start. Are you sure that this is the correct log of the current runnning server.
Maybe you have tried to start the server twice and this is the log of the second failed startup.
Do you have forwarded the correct protocol on port 51234 (TCP)?
Can you telnet the TCPQueryPort from the LAN with your LAN IP (telnet LAN-IP-OF-TS-SERVER 51234)?

And I read up on socket error 10049 and BoundToIP seems not to be the only reason for socket error 10049 on windows (though it is on linux).

Other possible cause: If the webserver that runs the webpost script and the TS server are both in the same local network behind your router and www.mywebsite.com is reffering to your external IP then this may not work because most routers do not support the redirection of the external IP back into the LAN.

So you will have to change that to http://LAN-IP-OF-WEB-SERVER/dir/dir/webpost.php.
But be careful since that may be in conflict with the virtual domain config of your web server. So make sure that the script is really reachable with http://LAN-IP-OF-WEB-SERVER/dir/dir/webpost.php.

Also in the script you will have to enter the LAN IP of the TS server in the config instead of the WAN IP or the domain name.

Chirkov
29-06-2004, 13:31
Can you telnet the TCPQueryPort from the LAN with your LAN IP (telnet LAN-IP-OF-TS-SERVER 51234)?
.

I have the same problem using w3sockets...
I can telnet it, but when i using socket component ... it says CANT ASSING REQUESTED ADDRESS