through the fire!

This is a discussion on through the fire! within the Windows Programming forums, part of the Platform Specific Boards category; Hi! I made a small chat client and chat server program. As we've got here a firewall, I sent the ...

  1. #1
    Normal vector Carlos's Avatar
    Join Date
    Sep 2001
    Location
    Budapest
    Posts
    463

    through the fire!

    Hi!

    I made a small chat client and chat server program. As we've got here a firewall, I sent the server part to my friend, who sent back his IP, and that way I could establish the connection with his computer. Of course, the client was running on my machine, as he cannot get through our firewall.

    But, I tried the same thing with my girlfriend, and it didn't work.
    She's got a firewall, too. And I made the whole program to be able to chat with her, when we're at the office.

    Hope somebody has a really revolutionary idea, how to connect a remote, when both computers are behind a firewall?

    Thanks in advance.

    Have a nice code!

  2. #2
    Evil Member
    Join Date
    Jan 2002
    Posts
    638
    My Advice: If your computer is on fire, don't use a bucket of water to put it out.

  3. #3
    Registered User (TNT)'s Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    339
    Just wandering why cant you just give the program permission to use the net in the firewall?, surely your firewall has rules for applications.

    Or if you dont want to do it manuelly i guess the firewalls rules have to be stored somewhere? and if they arnt encrypted i guess you could edit them from your program. As another idea you could temporairly disable the firewall from your program as a last resort.

    Sorry i cant help more
    TNT
    TNT
    You Can Stop Me, But You Cant Stop Us All

  4. #4
    Evil Member
    Join Date
    Jan 2002
    Posts
    638
    Well TNT, most corporations arent keen on changing firewall settings so employees can converse with the g/f on company time. Damn capitalist pigs

    Could try having a terminal setup (telnet, probably) that both of you could connect in to, establishing two connections through one firewall each rather than one connection through two firewalls, and one in the wrong direction.

  5. #5
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    Not sure what firewall's you are using but try sending the data on a very high port. Some of the firewalls don't detect packets sent on the upper ports.

  6. #6
    30 Helens Agree neandrake's Avatar
    Join Date
    Jan 2002
    Posts
    640

    Talking

    Originally posted by Imperito
    My Advice: If your computer is on fire, don't use a bucket of water to put it out.
    If your computer is on fire, use a Class C fire extinguisher to put it out. =)

  7. #7
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,220

    Re: through the fire!

    since you already have the fire, couldn't you just do smoke signals?

  8. #8
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,220
    if you have access to the web, set up a message board and use that to chat..?

  9. #9
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,859
    Try fooling it by using a common port that sould not be blocked.

    Say for mail or ftp.

    Your firewall may have permissions by program or by port number.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  10. #10
    Normal vector Carlos's Avatar
    Join Date
    Sep 2001
    Location
    Budapest
    Posts
    463
    Thanks guys for your answers, even for the humorous ones ;).

    Well TNT, most corporations arent keen on changing firewall settings so employees can converse with the g/f on company time. Damn capitalist pigs
    Well, yes, Imperito, you're right! ;)))

    Could try having a terminal setup (telnet, probably) that both of you could connect in to, establishing two connections through one firewall each rather than one connection through two firewalls, and one in the wrong direction.
    That sounds good, but how? Could you please give me a starting point, reference, etc.? Thanks.

    Here is what I've got: port#53 is ok, it's open. I guess it is used by mail server (?).

    I put the question another way: how do some chat programs - e.g. ICQ - identify my computer, as it *is* working, even through the firwall?

    If I could somehow implement this functionality in my program,
    everything would be fine.

    But how?
    Last edited by Carlos; 04-09-2002 at 02:18 AM.

  11. #11
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,139
    Do you have a chance to place your server in a third, independent place ? Like your home ? This way you should both be able to connect to it, because at home you can configure your firewall as you like it.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  12. #12
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,859
    For reserved port numbers in windows OS look in 'winsock.h' or better 'winsock2.h'

    (53 is not reserved for mail or anything else in winsock.h)

    to find if your ports are available try

    https://grc.com/x/ne.dll?bh0bkyd2

    for an online scanner at Gibson Research corp
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  13. #13
    Normal vector Carlos's Avatar
    Join Date
    Sep 2001
    Location
    Budapest
    Posts
    463
    Thank you Nvoigt and Novacain.

    Nvoigt, I was also thinking that might be a solution: to use a third computer as server.

    That's how ICQ works as well, isn't it?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need a programming team for a Frets On Fire clone
    By metalforever in forum Projects and Job Recruitment
    Replies: 14
    Last Post: 11-25-2008, 08:59 PM
  2. Burning fire effect
    By Alexthunder in forum C Programming
    Replies: 9
    Last Post: 11-09-2005, 12:18 PM
  3. Fire an event
    By Barjor in forum C# Programming
    Replies: 1
    Last Post: 04-26-2003, 08:21 PM
  4. forest fire
    By Kohatian 3279 in forum C++ Programming
    Replies: 0
    Last Post: 04-18-2002, 02:52 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21