![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Banned
![]() ![]() |
Socket module
Okay, so I'm working on a little Networking with Python using the 7.2.3 example on python.docs.
To test it I switched it to: server host - "compaq" port - 2222 client host - 192.168.0.xxx port - 2222 And it worked, because for host I put the network IP. But when I try to replace the network IP with my internet IP (so people from outside my network can access it), the client times out. I've tried replacing the server's hostname with the internet IP, tried changing ports. I've tried switching client/server with friends. Made sure no firewall is up. Can someone give me a working example for two computers outside of the same network?
__________________
Looking for tough programming challenges? Try participating in Sane's Monthly Algorithms Challenges! Composing Techno is a little side hobby of mine. Techno by DJ Sane. All free for download. |
|
|
|
|
|
#2 |
|
PFO Founder
![]() ![]() |
you sure you dont have to do any port fowarding in your router? (that is if you have a router)
__________________
BIG K aka Kyle Programming Forums Kyle K Online Please do not PM or email me programming questions. Post them in the forums instead. |
|
|
|
|
|
#3 |
|
Banned
![]() ![]() |
Yes, I have a router. But as I said, I've tried switching client/server sides with my friends.
__________________
Looking for tough programming challenges? Try participating in Sane's Monthly Algorithms Challenges! Composing Techno is a little side hobby of mine. Techno by DJ Sane. All free for download. |
|
|
|
|
|
#4 |
|
Hobbyist Programmer
|
this might be of some help:
http://www.portforward.com/english/r...outerindex.htm
__________________
Hoes telling me to calm down but I'm like fuck that shit!
|
|
|
|
|
|
#5 | |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
Quote:
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270 |
|
|
|
|
|
|
#6 |
|
Banned
![]() ![]() |
Why does a router matter anyways? Like I didn't think playing an online game was connected any differently with a router then without. Shouldn't that apply to the socket module as well. If not, then what's the solution?
__________________
Looking for tough programming challenges? Try participating in Sane's Monthly Algorithms Challenges! Composing Techno is a little side hobby of mine. Techno by DJ Sane. All free for download. |
|
|
|
|
|
#7 |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5
![]() |
If you're behind a NAT, then you can connect to computers through your router, but they cannot connect back to you. The typical way to solve this problem is port forwarding; you tell your router to forward all incoming connections on the port X to your localmachine.
For instance, my router forwards port 22 to my Linux-based NSLU2. |
|
|
|
|
|
#8 |
|
Banned
![]() ![]() |
But if I'm trying to sell this product, I don't want to make all my customers have to forward a port if they have a router.
![]()
__________________
Looking for tough programming challenges? Try participating in Sane's Monthly Algorithms Challenges! Composing Techno is a little side hobby of mine. Techno by DJ Sane. All free for download. |
|
|
|
|
|
#9 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Well, anyone who's hosting the game will have to forward a port... how many people are gonna be doing that? And if they are, you'd hope they'd know enough to do that already.
|
|
|
|
|
|
#10 |
|
Banned
![]() ![]() |
Nah, it's for a Remote PC Accessing program. So the program is for someone who wants to be able to access their computer from a distant location without having to worry about uploading crap, or paying for a domain name. This need applies to a lot of people, including those who had no clue port forwarding existed (IE, me).
And I'm also using the same framework for an FTP emulator under similar circumstances.
__________________
Looking for tough programming challenges? Try participating in Sane's Monthly Algorithms Challenges! Composing Techno is a little side hobby of mine. Techno by DJ Sane. All free for download. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|