473,666 Members | 2,678 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Connecting to a Service Listening on a Port over TCP/IP

I have a .net website and I need to connect to a service listening on a
specific port from that website. The service and website are on the same
windows 03 server. I don't know where to start on this, can someone point
me in the right direction.

Thanks.

Nov 19 '05 #1
5 1834
well, you need to know the protocol required to talk to this service. is
tcp/ip or udp? is a self defined stream protocol or is an http protocol.
connect to it with telnet, and see what you can learn. use net monitor to
dump the packets.

-- bruce (sqlwork.com)

"Bob Garbados" <bo*********@ya hoo.com> wrote in message
news:bL******** *****@fe07.lga. ..
| I have a .net website and I need to connect to a service listening on a
| specific port from that website. The service and website are on the same
| windows 03 server. I don't know where to start on this, can someone point
| me in the right direction.
|
| Thanks.
|
|
|
Nov 19 '05 #2
Thanks. It's tcp/ip and I don't know if it's self defined or http. I only
know that I have to send xml to a specific port. I can't connect with
telnet to the port, does that mean it has to be opened up? Pinging the port
times out.
"bruce barker" <no***********@ safeco.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
well, you need to know the protocol required to talk to this service. is
tcp/ip or udp? is a self defined stream protocol or is an http protocol.
connect to it with telnet, and see what you can learn. use net monitor to
dump the packets.

-- bruce (sqlwork.com)

"Bob Garbados" <bo*********@ya hoo.com> wrote in message
news:bL******** *****@fe07.lga. ..
| I have a .net website and I need to connect to a service listening on a
| specific port from that website. The service and website are on the same | windows 03 server. I don't know where to start on this, can someone point | me in the right direction.
|
| Thanks.
|
|
|

Nov 19 '05 #3
Bruce,

I can connect to it with telnet but I can't learn anything... once the
connection opens I just see a blinking cursor, if I press a key the
connection is lost.

"bruce barker" <no***********@ safeco.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
well, you need to know the protocol required to talk to this service. is
tcp/ip or udp? is a self defined stream protocol or is an http protocol.
connect to it with telnet, and see what you can learn. use net monitor to
dump the packets.

-- bruce (sqlwork.com)

"Bob Garbados" <bo*********@ya hoo.com> wrote in message
news:bL******** *****@fe07.lga. ..
| I have a .net website and I need to connect to a service listening on a
| specific port from that website. The service and website are on the same | windows 03 server. I don't know where to start on this, can someone point | me in the right direction.
|
| Thanks.
|
|
|

Nov 19 '05 #4
Try the telnet like this telnet 123.123.123.123 XXXX where XXXX is the port
number where you want to connect. If the port is open you will get the
cursor and if you type something it should give you an answer.

Regards,

Renán
"Bob Garbados" <bo*********@ya hoo.com> escribió en el mensaje
news:yy******** *******@fe07.lg a...
Bruce,

I can connect to it with telnet but I can't learn anything... once the
connection opens I just see a blinking cursor, if I press a key the
connection is lost.

"bruce barker" <no***********@ safeco.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
well, you need to know the protocol required to talk to this service. is
tcp/ip or udp? is a self defined stream protocol or is an http protocol.
connect to it with telnet, and see what you can learn. use net monitor to
dump the packets.

-- bruce (sqlwork.com)

"Bob Garbados" <bo*********@ya hoo.com> wrote in message
news:bL******** *****@fe07.lga. ..
| I have a .net website and I need to connect to a service listening on a
| specific port from that website. The service and website are on the

same
| windows 03 server. I don't know where to start on this, can someone

point
| me in the right direction.
|
| Thanks.
|
|
|


Nov 19 '05 #5
That's exactly what I did, but the connection gets lost when I type anything
at the cursor.

Thanks.

"Renán Wug" <rw**@globalcem entsa.com> wrote in message
news:uE******** *****@TK2MSFTNG P09.phx.gbl...
Try the telnet like this telnet 123.123.123.123 XXXX where XXXX is the port number where you want to connect. If the port is open you will get the
cursor and if you type something it should give you an answer.

Regards,

Renán
"Bob Garbados" <bo*********@ya hoo.com> escribió en el mensaje
news:yy******** *******@fe07.lg a...
Bruce,

I can connect to it with telnet but I can't learn anything... once the
connection opens I just see a blinking cursor, if I press a key the
connection is lost.

"bruce barker" <no***********@ safeco.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
well, you need to know the protocol required to talk to this service. is tcp/ip or udp? is a self defined stream protocol or is an http protocol. connect to it with telnet, and see what you can learn. use net monitor to dump the packets.

-- bruce (sqlwork.com)

"Bob Garbados" <bo*********@ya hoo.com> wrote in message
news:bL******** *****@fe07.lga. ..
| I have a .net website and I need to connect to a service listening on a | specific port from that website. The service and website are on the

same
| windows 03 server. I don't know where to start on this, can someone

point
| me in the right direction.
|
| Thanks.
|
|
|



Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3634
by: Google Mike | last post by:
After a lot of thought and research, and playing with FreeTDS and InlineTDS, as well as various ODBC connections, I have determined that the fastest and cheapest way to get up and going with PHP on Linux, connecting to MS SQL Server, unless it was already pre-installed by your Linux installation, is to build your own multithreaded TCP socket server on Windows and connect to it through the socket API in PHP on Linux (if you have installed...
0
1484
by: Tom Brown | last post by:
Hi, I created a win32 service for XPPro called N4010ATestService.py (see below). The service runs as a particular user with administrative rights. It starts a thread that creates a simple socket server (N4010ASocketServer.py -- also below) that just waits for 20 character string. When I run the socket server by itself the test client can connect to the server and send a 20 character string just fine. When I run the service, the server...
2
1882
by: karl | last post by:
I have a windows service that kicks off a 'monitor' thread which in turn kicks off 4 additional threads. These 4 threads basically are listen on a designated socket and report back any errors (exceptions) to the monitor thread. Of course, all works well on my box. Yesterday I installed the .NET Framework 1.1 on a new server and then installed my service. It appears that everything is starting but when I perform a netstat - a...
3
2490
by: Fredric Ragnar | last post by:
Hi, I am making a prototype system with Remoting in the bottom of the system. An XML Web Service is using the remote object on an IIS to present data. I am using a TcpChannel for communicating between the XML Web Service and the host for the remote object. Within the host a port is defined and the channel registered. It starts listening for requests. The destination port is therefore clearly defined.
2
11148
by: Ankit Aneja | last post by:
I am making windows service using Microsoft visual studio.Net in C# service name is clamservice problem is that when i start the service it through control pannel->Administrative tools->services it shows "starting" and never shows "started" it goes somewhere in loop i am doing some logical mistake i want to create service supporting multiple clients using threading pls help me code:
9
2696
by: RvGrah | last post by:
After much hair-pulling, I've finally found the answer to a problem that many are fighting with, difficulty connecting from Sql 2005 Server Management or VS2005 to a remote Sql Server running Sql 2000. In my case the server I couldn't reach was across a vpn connection, behind ISA server 2000, (which had port 1433 open). The answer was in this post:...
3
10343
by: jwpaco | last post by:
I am new to services and I have quite the task. I need a windows service that will, once started, open a socket and listen for client connections. When a connection is made, the client will want the service to query the db and return a value. This is for use with an IVR system. Basically, a customer will callin and request some account information and the service will need to qoery the db and return an answer to the customer through the...
2
4016
by: Sourcerer | last post by:
I posted these on another group, but was redirected here, so here are my two posts and my questions: Post #1: I've started my first practice windows service project in C#, and I'm already stuck. Let's say I'm trying to make a simple service (and useless, but good for practice). It is supposed to listen on port which is stored in its configuration
6
5081
by: paal.andreassen | last post by:
I have a problem. I have two instances of a client-server application running on two different machines A and B. A has a listening service, that listens for connections from B B has a listening service, that listens for connections from A The problem is what IP to bind the listening service to. I can find all local ip-addresses this way:
0
8438
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8348
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8779
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8549
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8636
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5660
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2765
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2004
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1761
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.