Computer Science Canada Is turing not able to receive data over port 443? |
Author: | LaZ3R [ Sun Jul 20, 2008 9:09 pm ] |
Post subject: | Is turing not able to receive data over port 443? |
For some reason, trying to use this port which is normally used for secure connections isn't successful for me through turing ![]() I put the data into the stream, but am not sure if the other side even receives it as I'm not even sent any type of response from the server back. Anyone have any clue? ![]() |
Author: | LaZ3R [ Sun Jul 20, 2008 10:05 pm ] |
Post subject: | Turing 4.1.1 freezes when attempting to connect to servers??? |
Juh?! I can't connect to crap anymore now that I tried using 4.1.1 but 4.0.5 (version I used before) works fine still... Anyone else experiencing network problems using 4.1.1? |
Author: | LaZ3R [ Sun Jul 20, 2008 10:10 pm ] |
Post subject: | RE:Turing 4.1.1 freezes when attempting to connect to servers??? |
Ok, I've narrowed down the problem to not the actual connection part itself, but trying to receive data from the stream... As soon as I try to get data, whole connection freezes and turing stops responding. |
Author: | LaZ3R [ Sun Jul 20, 2008 10:18 pm ] |
Post subject: | RE:Turing 4.1.1 freezes when attempting to connect to servers??? |
Ok nevermind, editing the Net.tu file solved my problem, actually might have just fixed my port 443 problem too but I'll find out shortly :p. |
Author: | LaZ3R [ Sun Jul 20, 2008 11:13 pm ] |
Post subject: | RE:Turing 4.1.1 freezes when attempting to connect to servers??? |
Yeah well, the port 443 issue I had in the other thread I made still exists... Damn turing ![]() |
Author: | apomb [ Mon Jul 21, 2008 8:00 am ] |
Post subject: | RE:Is turing not able to receive data over port 443? |
Quintuple posting!? all in just over 2 hours... this has to be a record of some sort. glad to know you've solved your problem though, just keep it to edits if no one has replied for god's sake! |
Author: | DemonWasp [ Mon Jul 21, 2008 8:15 am ] |
Post subject: | RE:Is turing not able to receive data over port 443? |
Well, port 443 is reserved for HTTPS over SSL, which may or may not have something to do with it. You can see a list of reserved ports here: http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers Generally, it's a good idea to choose port numbers in excess of 1024, since most of the first 1024 ports are already claimed by some important-or-critical services. |
Author: | LaZ3R [ Mon Jul 21, 2008 1:16 pm ] |
Post subject: | RE:Is turing not able to receive data over port 443? |
Well, the thing is I'm trying to send data over port 443 to a server for exactly that purpose. No way for turing to do that eh? ![]() |
Author: | SNIPERDUDE [ Mon Jul 21, 2008 7:47 pm ] |
Post subject: | RE:Is turing not able to receive data over port 443? |
I wouldn't imagine |
Author: | Dan [ Mon Jul 21, 2008 8:41 pm ] |
Post subject: | RE:Is turing not able to receive data over port 443? |
It may help to see your code, i am on linux right now so i can't test truing my self but when i get on a windows computer with Turing i will try connecting to port 443. If you are trying to connect a Turing program to a none Turing made program, it might be a good idea to see if you can do a local connection between two Turing programs first to see if it relay is the port causing the issue. |
Author: | SNIPERDUDE [ Mon Jul 21, 2008 9:35 pm ] |
Post subject: | RE:Is turing not able to receive data over port 443? |
Good suggestion. |
Author: | LaZ3R [ Sun Jul 27, 2008 8:24 pm ] |
Post subject: | RE:Is turing not able to receive data over port 443? |
Very good suggestion Dan ![]() I created a server but for some reason, if Turing detects that I'm trying to make it on port 443, it simply gives me a "Net Error: Windows Socket Library Error #1008." If I change the port to 442 or 444, or any other port aside from 443, it'll create the server and wait on the port as specified to by the function. Very interesting... Probably why I can't put any data through 443 either which is why I'm not getting a response from the server I'm trying to ![]() Any ideas on how to fix this? Really need to be able to send data through the port and receive as well ![]() |
Author: | Dan [ Sun Jul 27, 2008 8:39 pm ] |
Post subject: | RE:Is turing not able to receive data over port 443? |
I have a few ideas tho nothing for sure: Are you running vista or xp? Some opreating systems only allow the admin user or user with set permisons to use certent ports. I would try running the turing program (and posibly server) as adminstator. Also try turning off any firewalls you may have on, including windows firewall. There is also the posblity that somthing is allready bound to port 443 and is block it form use by other programs. 443 is comanly used for https so try closing anything that could be using that port other then your application. If you are running both the server and the client on the same computer try running them on diffrent ones. |
Author: | btiffin [ Sun Jul 27, 2008 8:43 pm ] | ||
Post subject: | RE:Is turing not able to receive data over port 443? | ||
Port 443 may be in use by another app on your system. Try
to see what's what in terms of open ports. You can get a Windows version of nmap from nmap.org Cheers Edit; typo |
Author: | octopi [ Sun Jul 27, 2008 8:57 pm ] |
Post subject: | Re: Is turing not able to receive data over port 443? |
Why do you NEED to use port 443? If your connecting to some external resource, then it will require the connect to be secured, I doubt Turing is capable of handling the encryption necessary to use HTTPS, and definitely doesn't have any built in support. |
Author: | LaZ3R [ Sun Jul 27, 2008 9:54 pm ] |
Post subject: | RE:Is turing not able to receive data over port 443? |
Something I read before was that it is possible that ONLY the server or client (at least one side) must be able to handle HTTPS secure data in order for a secure connection to be established, I started creating an MSN based Turing messenger client and MSN's authentication part which I'm at requires HTTPS . I just recentely tried to start working on this again but I don't know, I hate starting things and being prevented from finishing it. If I hit a road block 100% that I'm sure about, I'll call the quits I guess :p. Thanks for the suggestions, will try them out ![]() |
Author: | LaZ3R [ Sun Jul 27, 2008 10:01 pm ] | ||
Post subject: | Re: RE:Is turing not able to receive data over port 443? | ||
btiffin @ Sun Jul 27, 2008 8:43 pm wrote: Port 443 may be in use by another app on your system.
Try
to see what's what in terms of open ports. You can get a Windows version of nmap from nmap.org Cheers Edit; typo First off, running as admin on the server file still didn't do anything, same problem. As for this nmap proggy, I tried the command you gave me but it doesn't show any ports/hosts in the list after hitting scan. Is that the right command?? Thanks again. |
Author: | btiffin [ Sun Jul 27, 2008 10:38 pm ] |
Post subject: | Re: Is turing not able to receive data over port 443? |
Well, it may mean that you don't have any open ports. nmap is a little bit of a complex beast, so make sure you read through the docs for the command line options. (I don't run Windows very often - so don't know the deets on that side right now). And as Octopi mentioned; don't assume that traffic over port 443 is going to be secure "just because". You need a server side socket handler with encryption for that. Windows may well have special gates built in to protect 443. Dunno. Cheers |
Author: | LaZ3R [ Sun Jul 27, 2008 10:49 pm ] |
Post subject: | RE:Is turing not able to receive data over port 443? |
I already know that the server side (MSN's servers) have SSL so they'd handle that part, I just need a way for Turing to be able to physically connect to the port. I know that simply connecting to a port won't do anything itself ![]() |
Author: | LaZ3R [ Sun Jul 27, 2008 11:31 pm ] |
Post subject: | RE:Is turing not able to receive data over port 443? |
Sigh... MSN Messenger was using 443... even though it's already logged in and all. That's what didn't allow me from making a server on 443. So I've confirmed now that I can in fact transfer over 443, but MSN servers still don't want to send me any data even though I put the correct data into the stream. I don't get any response what so ever from them which is rather odd since an illegal message would at least give a closing connection type of return. ![]() Thanks for the help guys, can't believe I didn't think about closing MSN messenger itself in the first place... ![]() |
Author: | LaZ3R [ Mon Jul 28, 2008 12:00 am ] |
Post subject: | RE:Is turing not able to receive data over port 443? |
... Wow, and a follow up to that, apparently it WASN't MSN using 443 because I have MSN open now and the turing server works on 443 with the client heh. I closed quite a few applications so I'm not sure which one it was. MSN Turing client still no worky though. MSN still not giving a response even though 443 should be working now. |
Author: | Dan [ Mon Jul 28, 2008 12:27 am ] |
Post subject: | RE:Is turing not able to receive data over port 443? |
First of all the edit buttion is your firend, no need to make so many posts in a row. Second are you just putting plain text threw the stream? Just putting data threw port 443 will not encrypt it or make it SSL. You need to implement SSL in Turing and use it to communicate with the MSN server. |
Author: | SNIPERDUDE [ Mon Jul 28, 2008 9:03 am ] |
Post subject: | RE:Is turing not able to receive data over port 443? |
If you want it encrypted, make an encrypter file that will encrypt/decrypt text and send it through like that. |
Author: | LaZ3R [ Tue Jul 29, 2008 10:55 pm ] |
Post subject: | Re: RE:Is turing not able to receive data over port 443? |
Dan @ Mon Jul 28, 2008 12:27 am wrote: First of all the edit buttion is your firend, no need to make so many posts in a row.
Second are you just putting plain text threw the stream? Just putting data threw port 443 will not encrypt it or make it SSL. You need to implement SSL in Turing and use it to communicate with the MSN server. Dang, probably why it only sends me the chr 128 over and over again through the stream :p. Any idea how difficult or how much I need to pay you to make a way of implementing SSL in turing? I wish Holtsoft would've implemented it before they shut down operations ![]() http://en.wikipedia.org/wiki/Secure_Sockets_Layer - I read that before and there's a LOT to implement to get it working correctly but I'm not sure if it's all absolutely required for the connection between the client and server to establish a secure communication. Any ideas? |
Author: | Dan [ Wed Jul 30, 2008 6:07 am ] |
Post subject: | RE:Is turing not able to receive data over port 443? |
Well i think it is possible to implement SSL in Turing but i would not want to try nor would i advise any one to do so unless that was the only goal of there project. There also maybe a problem with how Turing deals with sending strings over a network, where a bug prevents sending a char array and Turing strings have issue when they hit a \0 and other spesahal chars witch will likey be needed. There was some one working on a work around for this issue but i think they gave up. With that side your only options are you implement the portical, move the project to a diffrent langune or find a way of using turing with another programming langue threw Sys.Exec calls and having the SSL part in another langue. If you are intrested in implmenting SSL you can find the spec here: http://www.mozilla.org/projects/security/pki/nss/ssl/draft302.txt but you will probly need to do alot of reasrch into computer science realted secruity topics to get much use of the spec and be able to implment it. |
Author: | LaZ3R [ Wed Jul 30, 2008 4:10 pm ] |
Post subject: | RE:Is turing not able to receive data over port 443? |
The special chars being sent over the netstream was fixed actually and it was me and a friend who were working on that. It's a fairly simple fix involving modifying the Net.tu file and creating a couple extra functions which allow for reading/writting data to the netstream instead of only putting and getting which really makes a big difference. SSL would take too long to implement from scratch in Turing so I guess I'll call the quits on this MSN messenger client for the time being ![]() Thanks for the help anyways guys, I appriciate it ![]() |
Author: | Dan [ Wed Jul 30, 2008 9:20 pm ] |
Post subject: | RE:Is turing not able to receive data over port 443? |
Ah i forgot it was you. You should post the modified Net.tu file so others can benefit from it. (If you have not already). |