473,320 Members | 1,829 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Sockets!!

Hi, im writting an application which works over a net
work and i need to be able to send other users on the
network messages from the server application. I suppose
kinda of like a p2p chat program. Does any body know of
any good examples of this is VB.net. I cant seem to find
any good ones. When ive tired i keep getting an error
saying request refused, which is a bit daft considering
its my own machines IP. Hope you can help me out. Regards

JP
Nov 20 '05 #1
2 940
Well the reason you are getting the error is probably because you're not
using a TCPListner to establish the connection from the client Application.
You need to have a Host application or module that will listen for incoming
connections and then can hand them off to another class to be processed and
handled. There a tons of good examples on using the TCP sockets on MSDN I
would recomend downloading the 101 samples from MSDN and taking a look at
the TCP applications there.

"James Proctor" <ja**********@ebmis.co.uk> wrote in message
news:02****************************@phx.gbl...
Hi, im writting an application which works over a net
work and i need to be able to send other users on the
network messages from the server application. I suppose
kinda of like a p2p chat program. Does any body know of
any good examples of this is VB.net. I cant seem to find
any good ones. When ive tired i keep getting an error
saying request refused, which is a bit daft considering
its my own machines IP. Hope you can help me out. Regards

JP

Nov 20 '05 #2
Also I might add the mistake I made when I did the sample...

If you are on a network be sure your port forwarding is set correctly. (tell
your router that say you are 155.155.1.8 you want all port 6000
communication to go to 155.155.1.8) other wise it will give you connection
refusal errors.

"Mike Bulava" <mb*****@comcast.net> wrote in message
news:O2*************@tk2msftngp13.phx.gbl...
Well the reason you are getting the error is probably because you're not
using a TCPListner to establish the connection from the client Application. You need to have a Host application or module that will listen for incoming connections and then can hand them off to another class to be processed and handled. There a tons of good examples on using the TCP sockets on MSDN I
would recomend downloading the 101 samples from MSDN and taking a look at
the TCP applications there.

"James Proctor" <ja**********@ebmis.co.uk> wrote in message
news:02****************************@phx.gbl...
Hi, im writting an application which works over a net
work and i need to be able to send other users on the
network messages from the server application. I suppose
kinda of like a p2p chat program. Does any body know of
any good examples of this is VB.net. I cant seem to find
any good ones. When ive tired i keep getting an error
saying request refused, which is a bit daft considering
its my own machines IP. Hope you can help me out. Regards

JP


Nov 20 '05 #3

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

Similar topics

2
by: Tero Saarni | last post by:
Hi, I have several threads communicating with each other using events stored in Queues. Threads block on Queue.get() until somebody publishes an event in thread's event queue. I need to add...
1
by: Dmitry Akselrod | last post by:
Hello everyone, I have a vb.net application that wraps the TCPListener object in a class. The server connects to the local interface and establishes itself on port 9900. It then polls for...
0
by: mrpolitics | last post by:
So I'm working with PureIRCD (http://sourceforge.net/projects/pure-ircd) and everything was fine untill yesterday when the server crashed. So I did a cold restart and staretd the server back up...
3
by: Logan McKinley | last post by:
I have a C# program that uses blocking sockets and want to allow the user to stop the server. The problem I am having is the socket blocks on...
1
by: Adam Clauss | last post by:
I am (attempting) to move an existing socket application to use raw sockets. Right now, my application is essentially a port forwarder. Upon receiving a connection, it will open a connection to...
4
by: BadOmen | last post by:
Hi, What is the different between 'System.Net.Sockets.Socket' and 'System.Net.Sockets.TcpClient'? When do I use System.Net.Sockets.TcpClient and System.Net.Sockets.Socket?? Yours, Jonas
3
by: Michael Maercker | last post by:
hi! i'm really not into networking at all and have now been asigned the task of porting a vb6-code into vb.net (compact framework, in this case) and the code uses the winsock-control. i quickly...
3
by: J C | last post by:
Hi, I'm using UDPClient to make a simple DNS server. I notice that intermittently and unpredictibly I get: Unhandled Exception: System.Net.Sockets.SocketException: An existing connection...
7
by: Adam01 | last post by:
Im using cygwin to test the code of a server I am writing. I've included sys/types.h, sys/socket.h, netdb.h, and arpa/inet.h. And this is the output.. ../../../sockets.cpp: In constructor...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.