473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How can my LAN-Chat work over INTERNET?

2
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 4137
sukatoa
539 512MB
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
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 512MB
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
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
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...
13
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...
3
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...
1
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...
1
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...
0
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...
3
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...
1
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...
3
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...

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.