Click here to Skip to main content
15,896,153 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to add value and text in combo box in c# windows application Pin
MrMahjong21-Jun-07 2:51
MrMahjong21-Jun-07 2:51 
GeneralRe: how to add value and text in combo box in c# windows application Pin
monuSaini21-Jun-07 2:57
monuSaini21-Jun-07 2:57 
GeneralRe: how to add value and text in combo box in c# windows application Pin
MrMahjong21-Jun-07 3:03
MrMahjong21-Jun-07 3:03 
GeneralRe: how to add value and text in combo box in c# windows application Pin
monuSaini21-Jun-07 3:10
monuSaini21-Jun-07 3:10 
GeneralRe: how to add value and text in combo box in c# windows application Pin
Luc Pattyn21-Jun-07 3:30
sitebuilderLuc Pattyn21-Jun-07 3:30 
GeneralRe: how to add value and text in combo box in c# windows application Pin
Luc Pattyn21-Jun-07 4:27
sitebuilderLuc Pattyn21-Jun-07 4:27 
AnswerRe: how to add value and text in combo box in c# windows application Pin
Chintan.Desai21-Jun-07 3:44
Chintan.Desai21-Jun-07 3:44 
QuestionServer/Client connection problem TCP Pin
MrMahjong21-Jun-07 2:45
MrMahjong21-Jun-07 2:45 
Hi guys! My first post here is ofcourse a little problem of mine! =) ive been looking pretty mutch everywhere, asking my proffesor and such, and we cant figure this out at all. I even analyzed the network trafic with Wireshark to see what was going on. No luck. So now im turning to you hardcore guys here at The Code Project Wink | ;)

Well to the problem. Im doing a really, REALLY simple chat client. (intending to control the mouse over ethernet). Where everything stops is when im trying to connect to the server.

On the client machine im running Vista using standard IPv6, and the Server im running XP Pro with IPv6. When launching the code below i can see from the network analyzing that it is actully sending packets and reciving to and from the server machine.

Then it gives me the most odd explenation ever.
"No connection could be made because the target machine activley refused it".

Ive tried to open up the network as mutch as possible to do a trial and error thing, but still no luck.

I dont even need to have my server app up and running. it still gives me the same message.

This is the Client code:
public void RunClient()
{
    try
    {
        Client = new TcpClient();
        Client.Connect("192.168.1.33", 50000);

        outputStream = Client.GetStream();

        Writer = new BinaryWriter(outputStream);

    }
        catch (Exception e) { MessageBox.Show(e.Message); }
    }
}


This is the servercode:
private void RunServer()
{
    TcpListener listener;
    
    try
    {
        IPAddress local = IPAddress.Parse("127.0.0.1");
        listener = new TcpListener(local, 50000);
                
        listener.Start();

        while (true)
        {
            Connection = listener.AcceptSocket();
            MessageBox.Show("Someone got connected."); ...


The servercode doesnt even reach the MessageBox.Show code. Seems like it is something external that is keeping the connection away. Anyone have any idea or could kick me in the right direction?

Thanks in advance for occupying your time =)
AnswerRe: Server/Client connection problem TCP [modified] Pin
Luc Pattyn21-Jun-07 2:53
sitebuilderLuc Pattyn21-Jun-07 2:53 
GeneralRe: Server/Client connection problem TCP Pin
MrMahjong21-Jun-07 3:01
MrMahjong21-Jun-07 3:01 
GeneralRe: Server/Client connection problem TCP Pin
MrMahjong21-Jun-07 3:05
MrMahjong21-Jun-07 3:05 
GeneralRe: Server/Client connection problem TCP Pin
Luc Pattyn21-Jun-07 3:28
sitebuilderLuc Pattyn21-Jun-07 3:28 
GeneralRe: Server/Client connection problem TCP Pin
MrMahjong21-Jun-07 4:00
MrMahjong21-Jun-07 4:00 
QuestionHow to retreive domain username and password Pin
Prajin21-Jun-07 2:36
Prajin21-Jun-07 2:36 
AnswerRe: How to retreive domain username and password Pin
originSH21-Jun-07 3:14
originSH21-Jun-07 3:14 
AnswerRe: How to retreive domain username and password Pin
Sathesh Sakthivel21-Jun-07 3:20
Sathesh Sakthivel21-Jun-07 3:20 
GeneralRe: How to retreive domain username and password Pin
originSH21-Jun-07 3:23
originSH21-Jun-07 3:23 
Questionderiving a user control from a user control Pin
cignox121-Jun-07 2:13
cignox121-Jun-07 2:13 
QuestionCertificate Chain Verification in x509certificate in .NET Pin
suprajav21-Jun-07 2:04
suprajav21-Jun-07 2:04 
QuestionCycling Through XML Objects Pin
Kris10021-Jun-07 1:34
Kris10021-Jun-07 1:34 
Questionwhy we using properties Pin
indiaone21-Jun-07 1:13
indiaone21-Jun-07 1:13 
AnswerRe: why we using properties Pin
originSH21-Jun-07 1:19
originSH21-Jun-07 1:19 
GeneralRe: why we using properties Pin
indiaone21-Jun-07 1:21
indiaone21-Jun-07 1:21 
GeneralRe: why we using properties Pin
originSH21-Jun-07 1:28
originSH21-Jun-07 1:28 
GeneralRe: why we using properties Pin
Martin#21-Jun-07 1:34
Martin#21-Jun-07 1:34 

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.