Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (535)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  rmi over the net  (Read 1488 times)
0 Members and 1 Guest are viewing this topic.
Offline korian

Junior Newbie





« Posted 2005-07-02 07:28:10 »

ive got a simple text editor to work over a LAN using RMI, how do i get it to work over the internet?
Online Riven
« League of Dukes »

JGO Overlord


Medals: 744
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #1 - Posted 2005-07-03 15:20:35 »

Set the IP to connect to, to the IP you wish to connect to. Cheesy

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline korian

Junior Newbie





« Reply #2 - Posted 2005-07-04 03:08:54 »

im using the computers name to connect not the IP what would i have to change, im assuming its this line of code in the client:

server = (EditorInterface)Naming.lookup( REGISTRY + SERVICE );

REGISTRY and SERVICE are Strings, Registry is simply the computers name "//piii800/"

thanks .
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Jeff

JGO Coder




Got any cats?


« Reply #3 - Posted 2005-07-04 05:13:49 »

If you are using an RMI registry to rondeyvous then what you need is a well known public RMI registry accessible from the net..

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #4 - Posted 2005-07-04 20:42:05 »

Your problem is that you appear to be using windows networking to locate your computer instead of the hostname.

You probably don't have a hostname.

You'll probably need to learn all about NAT to make this work, since you need the hostname of a machine on the internet somewhere, and most home users don't have that functionality out of the box.

malloc will be first against the wall when the revolution comes...
Offline korian

Junior Newbie





« Reply #5 - Posted 2005-08-13 09:59:47 »

could it be my ports?  I've forwarded the default rmi port 1099 is that all thats needed? or are there more i need to open?

otherewise is there a simple example program that works over the net that i could look at somewhere?

thanks.
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #6 - Posted 2005-08-13 19:01:08 »

Your problem is that you appear to be using windows networking to locate your computer instead of the hostname.

Ah...did you ever stop doing this?

malloc will be first against the wall when the revolution comes...
Offline korian

Junior Newbie





« Reply #7 - Posted 2005-08-21 11:48:49 »

yeah I changed the name to its 192.168 IP address and that works across the network ( is that what you meant?) but when it come to trying it across the internet with its router Ip address forwarded im not getting much luck.  Any suggestions would be greatly appreciated. Thanks
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #8 - Posted 2005-08-21 13:18:58 »

yeah I changed the name to its 192.168 IP address and that works across the network ( is that what you meant?) but when it come to trying it across the internet with its router Ip address forwarded im not getting much luck.  Any suggestions would be greatly appreciated. Thanks

First, check that the port forwarding is working as expected by running a packet sniffer (e.g. ethereal) on the local machine to see if it ever receives the packets on port 1099.

Second, run the packet sniffer when connecting over the local LAN to see if RMI is sending packets to any other ports that you may also need to forward from the router.

Third, check that you haven't got any additional firewalls anywhere, or on the router, that are blocking the port even though it's being forwarded.

malloc will be first against the wall when the revolution comes...
Offline JuddMan

Senior Member


Medals: 1


Your Ad Here


« Reply #9 - Posted 2005-09-02 10:18:40 »

routers will not foward any 192.168.x.x packets across the internet, you need to use the public ip address of the router which is fowarding those ports to connnect
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

pw (37 views)
2014-07-24 01:59:36

Riven (38 views)
2014-07-23 21:16:32

Riven (26 views)
2014-07-23 21:07:15

Riven (28 views)
2014-07-23 20:56:16

ctomni231 (59 views)
2014-07-18 06:55:21

Zero Volt (50 views)
2014-07-17 23:47:54

danieldean (42 views)
2014-07-17 23:41:23

MustardPeter (44 views)
2014-07-16 23:30:00

Cero (60 views)
2014-07-16 00:42:17

Riven (57 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!