Skip to main content
GameDev.net gamedev.net
🔒 Locked

Internet x LAN

Started by darwintn Mar 25, 2004 at 9:49 AM 3 replies 450+ views
Original Post
darwintn
darwintn
Hi... I wanted to know if there''s differences between creating sockets for Internet, and sockets for LAN. This because if i run my program in a LAN. everything works perfectly.However, when I try on the Internet, I can''t send any packets.... do I have to create sockets for Internet in a different way?? thanx
Evil Steve
Evil Steve
Nope, its exactly the same. How do you know you''re not sending any packets?
abeylin
abeylin
Firewall may be blocking the connection.
I hate firewalls.


http://www.anywherenotes.com - never lose another note again.
Xai
Xai
or one of the 2 ends could be using a router and would need to use NAT (network address translation) to set up PORT FORWARDING

If you have a modem, cable modem or dsl, you usually get 1-3 REAL IP addresses (depending on the company selling the service) ... then when you want to set up multiple computers at one location, they install a ROUTER, so that the router gets the one REAL ip address, and the internal computers talk to the router ...

if either computer in the chain has an IP address that begins with 192.168.*.* or 10.*.*.* it is using an internal address that is NOT routed over the internet, and MUST use NAT / PORT FORWARDING to get messages out.

Firewalls go above and beyond routers, and i don''t know enough to help you if they are involved (most people know if they have a firewall though).
RDragon1
RDragon1
Actually, just to be correct, the addresses reserved for private networks are:

(class A) 10.x.x.x
(class B) 172.(16-31).x.x
(class C) 192.168.x.x

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.