Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 13th, 2005, 6:42 AM   #1
Easter Bunny
Programmer
 
Easter Bunny's Avatar
 
Join Date: Mar 2005
Location: different places. constantly on the run.
Posts: 57
Rep Power: 4 Easter Bunny is on a distinguished road
chatting

hey dudes!!

i worte a chat program. when you run it, it asks for an ip address of the server(all the clients connect to the server which then the receives a message and sends it to all the other clients). the problem i'm having is over the internet. i don't really have a real internet server to run my server app on my pc. i log in fine on my pc, but my girlfriend can't connect. how will i get this to work? we connect through different service providers.

i'll check if it works through a network... hang on... yip. works fine. so we know now that it works, but not over the internet. any suggestions?

thanks.
__________________
There's got to be more to life than being really, really
ridiculously good looking
Easter Bunny is offline   Reply With Quote
Old Aug 13th, 2005, 11:22 AM   #2
skuinders
Hobbyist Programmer
 
skuinders's Avatar
 
Join Date: Jun 2005
Location: MA, US
Posts: 204
Rep Power: 4 skuinders is on a distinguished road
I'm guessing you have a LAN at home (your WAN connection goes into a router which connects to your computer). This means that your computer will have an LAN IP address - probably something like 192.168.0.x
This address is usable only on the LAN (from other computers in your house etc.). You need to use your WAN IP if you want outsiders to connect to you. Keep in mind, this IP address will likely be tentative as you probably don't have an ISP that gives you a static one.

p.s. Your outside IP address is really the address of the router. Depending on your router settings, requests sent to it without specific routing information will not make it to your computer or they might be forwarded to all machines on your LAN. You would probably want the latter in this case. I assume you are using a funky port number for your chat server and the other computers on your LAN wont be listening on that port, so it's not a big deal.
__________________
"A stupid man's report of what a clever man says can never be accurate, because he unconciously translates what he hears into something he can understand."
- B. Russell

http://web.bryant.edu/~srk2
skuinders is offline   Reply With Quote
Old Aug 13th, 2005, 11:27 AM   #3
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Even if you have a dynamic IP, you might luck out. Ours was the same for two years, until we switched to VOIP. Unless you work out some name service, just send your chatters the IP/port number to use. I have had success with that when opening up my server (for very limited times) for client demos. Port forward your router as appropriate.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Aug 13th, 2005, 11:38 AM   #4
Lich
Professional Programmer
 
Lich's Avatar
 
Join Date: May 2005
Location: Detroit
Posts: 254
Rep Power: 4 Lich is on a distinguished road
Send a message via AIM to Lich Send a message via MSN to Lich
If you're on a network just set up the server on a local machine, then forward the port on the router and send out the router IP as the server to connect to
__________________
--John Cruz
Web Developer
www.cruzweb.net
Lich is offline   Reply With Quote
Old Aug 15th, 2005, 5:24 AM   #5
Easter Bunny
Programmer
 
Easter Bunny's Avatar
 
Join Date: Mar 2005
Location: different places. constantly on the run.
Posts: 57
Rep Power: 4 Easter Bunny is on a distinguished road
on some websites they log your ip address, so i used the one there. 196.25.... but that didn't work. i thought about me being on a lan, so i emailed her the server app and an app that dislays your ip(on mine it only shows my lan ip -> 172.16...). on her forum, it logs ip addresses as well and there it was a different one(150.... or something there)to the one my ip app showed(19something....). if she used the one my app showed her, then she could log into the server which was running on her pc, but the forum's ip didn't allow it.

she could log into the server on her own pc, but if i tried from here, then it didn't allow me.
__________________
There's got to be more to life than being really, really
ridiculously good looking
Easter Bunny is offline   Reply With Quote
Old Aug 15th, 2005, 5:53 AM   #6
stevengs
Professional Programmer
 
stevengs's Avatar
 
Join Date: May 2005
Location: Bad Nauheim, Germany
Posts: 436
Rep Power: 4 stevengs is on a distinguished road
You need to use a Free DNS service and an IP updater. There are Free DNS services, like DynDNS.org with everything you need. Some hardware routers even have the updater built in! (i.e. NetGear) I have a domain name, and ZoneEdit points to it for me for free (ToilNTrouble) . I run a script that updates the IP whenever my router redials. My WebServer, Nameserver and sFTP server all work just like I would be on a perm IP.


* The some free redirection services don't suffice, because only port 80 is forwarded.
__________________
-Steven
"Is this a piece of your brain?" - Basil Fawlty
stevengs is offline   Reply With Quote
Old Aug 26th, 2005, 8:48 PM   #7
Brent
Highly Adaptive Penguin
 
Brent's Avatar
 
Join Date: May 2005
Location: United States
Posts: 252
Rep Power: 4 Brent is on a distinguished road
this is totally irrelevent, but does anyone know any good java networking sites
Brent is online now   Reply With Quote
Old Aug 26th, 2005, 9:05 PM   #8
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
Start your own thread about that.
__________________
Few people deserve to be compared to (Rush) Limbaugh, most of them were convicted at the Nuremburg trials.
--WilliamSChips on Slashdot
uman is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:20 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC