Click here to Skip to main content
16,004,927 members

cransaxbeth - Professional Profile



Summary

    Blog RSS
2
Debator
105
Participant
0
Author
0
Authority
0
Editor
0
Enquirer
0
Organiser
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Reputation

Weekly Data. Recent events may not appear immediately. For information on Reputation please see the FAQ.

Privileges

Members need to achieve at least one of the given member levels in the given reputation categories in order to perform a given action. For example, to store personal files in your account area you will need to achieve Platinum level in either the Author or Authority category. The "If Owner" column means that owners of an item automatically have the privilege. The member types column lists member types who gain the privilege regardless of their reputation level.

ActionAuthorAuthorityDebatorEditorEnquirerOrganiserParticipantIf OwnerMember Types
Have no restrictions on voting frequencysilversilversilversilver
Bypass spam checks when posting contentsilversilversilversilversilversilvergoldSubEditor, Mentor, Protector, Editor
Store personal files in your account areaplatinumplatinumSubEditor, Editor
Have live hyperlinks in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Have the ability to include a biography in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Edit a Question in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Edit an Answer in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Delete a Question in Q&AYesSubEditor, Protector, Editor
Delete an Answer in Q&AYesSubEditor, Protector, Editor
Report an ArticlesilversilversilversilverSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending ArticlegoldgoldgoldgoldSubEditor, Mentor, Protector, Editor
Edit other members' articlesSubEditor, Protector, Editor
Create an article without requiring moderationplatinumSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending QuestionProtector
Approve/Disapprove a pending AnswerProtector
Report a forum messagesilversilverbronzeProtector, Editor
Approve/Disapprove a pending Forum MessageProtector
Have the ability to send direct emails to members in the forumsProtector
Create a new tagsilversilversilversilver
Modify a tagsilversilversilversilver

Actions with a green tick can be performed by this member.


 
GeneralConnecting to a TCP Client using a web service Pin
cransaxbeth22-Jan-07 9:31
cransaxbeth22-Jan-07 9:31 
Hi all,

I'm trying to develop a web service that uses winsockets to connect to a server, and allow me to send and receive data from it. The thing is that I already have the code and the logic to make this work in windows form, but when I wrote the same code into a web service, when it tries to execute the segment which tries to connect to that external server, I receive a "No Such Host is Known" error message in the web browser.

Also when I try to connect to a server that is inside my network , it executes the Connect Method perfectly, and send and received data fine. The weird thing is that in windows application is works fine but not in the web service.

Does anyone could help?

Thanks so much,

Here is the code:

Dim tcpClient As New System.Net.Sockets.TcpClient

'Here is where the error is displayed
tcpClient.Connect("sms.lleida.net", 2048)


Dim networkStream As NetworkStream = tcpClient.GetStream()

Dim sms As String
sms = "1 LOGIN username password" & vbLf
sms = "3 SUBMIT" + " " + phone + " " + message & vbLf

SendData = Socket(networkStream, tcpClient, sms)




Bezabeth Rosado

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.