473,761 Members | 6,001 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can my LAN-Chat work over INTERNET?

2 New Member
I develop a chat (server and client) using Sockets. It's working on LAN but when I try to connect the client to the server using my public IP address it says it cannot connect to that address. For example: 192.168.1.66 is ok but 92.84.65.32 (public) is not, client cannot connect to this address. My address is public - a friend pinged my address successfully. You find everywhere examples and code for chat applications - but only over local network.
What's the problem? How can my chat work over the Internet? (I can post code if necesarry).
Please help me. I need this so much!
Nov 26 '09 #1
3 4160
sukatoa
539 Contributor
Try to test here if the modem forwards the request to your machine... if that port is closed

try to read and configure port forwarding in your modem
Nov 28 '09 #2
clawsy
2 New Member
Thank you! Indeed I tested it and all the ports I tested are closed... I have a router and a modem that I use. I tried to forward the port from router... but I couldn't. See here what settings I tried: http://www.coderanch.com/t/472724/So...t-working-over
Nov 28 '09 #3
sukatoa
539 Contributor
try to set it up again, (experiment)

an updated private IP address
use port from 3000+ and above

if you use Socket Type=TCP, if you use DatagramSocket Type=UDP

public port = private port
No comment
Enable

Save the settings
Reboot your router for 10 seconds
Unplug the utp cable/disable wireless device for 10 seconds, and connect it again...

try to observe if it is working.
Nov 29 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
4144
by: flyaflya | last post by:
I want make a desktop game suports LAN connect, but pygame has nothing about network.How to let pygame suport LAN connect? have you some examples or articles about LAN connect?
2
1398
by: gswitz | last post by:
My team lead just asked me to move my Visual Studio .Net 2003 Windows App project to the LAN. I run the .Net Configuration Wizard and set to full trust for the items in the bin. I also set to full trust everything on the LAN. Next, I run the app (it runs fine). Next I try to debug the app (it fails). I check the security settings for the app and they have been changed to none. Any ideas? Thanks, Geoff
13
1599
by: (Pete Cresswell) | last post by:
Back when I was writing Mac/Pascal stuff, there was a little utility called "Molasses" that could be set to slow down the whole system by variying amounts. The idea was that if you're developing on a really fast box, you want to get an idea of how the app will run on a slower machine. I find myself in a somewhat-similar situation now. My little home LAN is really fast (should be...there's nothing much going over it...) but the...
3
1732
by: Jerry J | last post by:
Hi, My asp.net application must access a file that can be anywhere on the server's LAN. I am having a problem because the server, doesn't have access to files that are not on the server's local disk. I have done similar things using COM+ and COM dlls in older versions of asp. I would have the file access code in a COM dll, run the dll in COM+, and in COM+, enter a UN and PW that would have LAN privilege that the COM object would...
1
1982
by: bruce.1 | last post by:
I'm trying to figure a way for a remote user -- using ASP.NET -- to share files on a local office LAN. The remote user would go to an ASP.NET website (on the LAN), mark the files they want, and ASP.NET would facilitate a download, and keep a record in a small database of who downloaded and uploaded whatever. These are big files, say 4 MB, so it's best if the remote user downloads the file, edits it, then uploads it back to some folder...
1
1538
by: AsadSohail | last post by:
Hello, This is Asad from India.I am doing as a network Administrator.And I have 20 sys in my office.And I make one sys as a DC.And I make client systems.And Also make users.But I Have some problem in my LAN. My problem is In client Pcs The user logon time is toooo late atleast it will take 20 min.If the system is not in lan It will take atleast 2 min.it's good.But the sys is in lan it will take atleast 20 min.Please tell me the...
0
1252
by: taysk8 | last post by:
So ya... I'd like to write a simple program in Java for scheduled wake-on-lan and shutdown over lan of any lan-enabled computer, regardless of O/S. School systems and library systems really need this a lot; the potential for energy conservation is incredible. Alas, I am taking my first Java class and admittedly am not ready to tackle this task alone... Oh yeah and the Educational Technology guys in my county (Broward, South Florida) have...
3
2671
by: anganb | last post by:
Local Area Network (LAN) Both an EtherNet (wire) network and a wireless network are referred to as a Local Area Network (LAN). A wireless network does not require hubs, switchers, or routers to include additional users on the network. Additional wireless users are supported just by being in the immediate physical span of the network. A wireless LAN (or Wi-Fi network) may be configured in two different ways:
1
2276
by: deebocean | last post by:
http://img212.imageshack.us/img212/8374/lan1fq8.th.jpg i want to make file server in my neighborhood, and make an option for others who have already their own network to get benefit from my server(s) , as in the image , i am building a big lan between the server and other lans . the problem here is that they have their own dsl routers so each lan has its private dsl connection and its machines and i want to connect them lans to my lan in a...
3
5027
by: Brian Odsgaard | last post by:
Hi all I'm going to build a simple multiplayer game. The task is to create a game that runs on multiple computers on a LAN. I want to create a solution that don't need a server running on a specific computer with a specific IP - all computers should be able to initiate a game and act as server.
0
9531
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10115
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9775
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7332
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5229
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5373
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3881
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3456
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.