Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (522)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (591)
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  
  Applets network connection questions  (Read 1708 times)
0 Members and 1 Guest are viewing this topic.
Offline ozak

Junior Devvie




Java demon has no respect for bad code!!!


« Posted 2004-09-09 17:20:14 »

I heard somewhere that applets can only connect to the same server (host/ip) on which they reside.
If so, how can I connect to a server on say, some other IP address?

Want to do multiplayer? Why not try my free Socky socket server?
It's scriptable through JavaScript!
Check it out at http://www.furi.dk/socky
Offline ozak

Junior Devvie




Java demon has no respect for bad code!!!


« Reply #1 - Posted 2004-09-09 17:35:56 »

Ahh. I just need a trusted applet right? (Signed)

Want to do multiplayer? Why not try my free Socky socket server?
It's scriptable through JavaScript!
Check it out at http://www.furi.dk/socky
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #2 - Posted 2004-09-09 18:10:11 »

Typically, the answer is "you don't".

Theoretically, you should have NO reason to do this, because any time you think you do, you shouldn't be doing an applet (you should be doing an app). Allegedly.

In practice, most people just run a small server application that you connect to, and which then connects to whatever remote server you wanted, and relays the information back.

These days it's more tricky because most people with servers don't have the ability to run their own software on the server (almost all servers are plain LAMPs; relatively few developers have root access to their hosting space).

What's your particular use-case for which you need arbitrary connections?

malloc will be first against the wall when the revolution comes...
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ozak

Junior Devvie




Java demon has no respect for bad code!!!


« Reply #3 - Posted 2004-09-10 04:29:19 »

I simply don't have access to run anything else than PHP on my webserver Sad

Want to do multiplayer? Why not try my free Socky socket server?
It's scriptable through JavaScript!
Check it out at http://www.furi.dk/socky
Offline Breadstick

Senior Newbie




while(true) me.doAction(Act ions.PWN_ALL);


« Reply #4 - Posted 2004-09-11 01:13:51 »

Quote
Ahh. I just need a trusted applet right? (Signed)


I've been wondering something for a while, but have been to lazy to test it out...

If I sign my applet, can it get unlimited access to the filesystem, to connect to remote servers, etc...? Or are applet's also internally limited?
Offline Breadstick

Senior Newbie




while(true) me.doAction(Act ions.PWN_ALL);


« Reply #5 - Posted 2004-09-11 01:19:35 »

Quote
I simply don't have access to run anything else than PHP on my webserver Sad


(Sorry about the double post)

Why do you need to connect to another server? If you're logging/retrieving data, maybe you could get/post to a php script to accomplish this.  That's what I've done in the past when I couldn't run a java app on my remote server:

http://gaming.cyntaks.com/projects/viewproject.php?project=HSManager
Offline ozak

Junior Devvie




Java demon has no respect for bad code!!!


« Reply #6 - Posted 2004-09-11 16:56:10 »

I need realtime network performance, so that's probably a no no.
I'll whip up a test soon and let you guys know.

Want to do multiplayer? Why not try my free Socky socket server?
It's scriptable through JavaScript!
Check it out at http://www.furi.dk/socky
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.

trollwarrior1 (34 views)
2014-11-22 12:13:56

xFryIx (73 views)
2014-11-13 12:34:49

digdugdiggy (52 views)
2014-11-12 21:11:50

digdugdiggy (46 views)
2014-11-12 21:10:15

digdugdiggy (40 views)
2014-11-12 21:09:33

kovacsa (66 views)
2014-11-07 19:57:14

TehJavaDev (70 views)
2014-11-03 22:04:50

BurntPizza (68 views)
2014-11-03 18:54:52

moogie (83 views)
2014-11-03 06:22:04

CopyableCougar4 (82 views)
2014-11-01 23:36:41
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!