This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes how to detect client and sending form/frame from rmi server ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "how to detect client and sending form/frame from rmi server ??" Watch "how to detect client and sending form/frame from rmi server ??" New topic
Author

how to detect client and sending form/frame from rmi server ??

Yudhi Kurniawan
Greenhorn

Joined: Sep 13, 2005
Posts: 5
hello,
i'm doing my final project at the university in my country.
i'm trying to make a client - server program using java rmi (if possible ) on a wireless network, but i'm facing some problems
1. i would like to detect all the clients (ip address and mac address) that connect to the access point of the wireless network how can i do that ?
2. i want to build aplication so that the server can send a login form (frame) to the client automatically after the client get detected by the server. how can i send a login form from the server using RMi aplication ?

can anybody tell me what are the commands and it would be greater if i can see some examples.

thank you

sorry if get in to the wrong forum


--Yudhi--
Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7292

"cocomo organic"

We don't have a lot of rules on JavaRanch, but we do ask that everyone use their real name when posting to the forums.

Please change your profile accordingly. Thanks!

Michael


Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7292

Originally posted by cocomo organic:

1. i would like to detect all the clients (ip address and mac address) that connect to the access point of the wireless network how can i do that ?

2. i want to build aplication so that the server can send a login form (frame) to the client automatically after the client get detected by the server. how can i send a login form from the server using RMi aplication ?

This project seems rather contrived to me for RMI (maybe that's the point). Wireless routers themselves provide some kind of interface already to require authentication and show active sessions. Is the purpose of the project to allow access to that router via an RMI server?

If so, the process seems to me two-step: One, build a program that connects to the router, authenticates and read off the active sessions. Two, serve this information to an RMI client.

There's really no RMI in the first part. You just need to contact the router and do all that stuff programmatically instead of the user interface already provided. As to the second...well, it's rather contrived in the sense that the work you'll be doing has already been done -- just not through RMI. I'd start by first getting text passing between client and server, then working on the forms scenario.
Yudhi Kurniawan
Greenhorn

Joined: Sep 13, 2005
Posts: 5

Is the purpose of the project to allow access to that router via an RMI server?

If so, the process seems to me two-step: One, build a program that connects to the router, authenticates and read off the active sessions.


thats right.. it's the one that i'm trying to build firstly, but the question is how can i do that ? can you give me the example code or at least give me a clue about the "build a program that connects to the router, authenticates and read off the active sessions"

thank you
and i have change it to my real name
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

"yudhi",

Thanks for changing your name - unfortunately, it still needs a little extra Names need a first name and a last name.

Unfortunately, different routers do this differently - some routers are just specialized computers, you could connect to these in the many different ways that you can already communicate between computers, or just have your program running on this computer itself. Lots of routers are just "stand-alone" boxes, though... some offer APIs for interacting with them, most just offer a web page GUI. Some require you to sign in as an "administrator" before accessing any information, some let you view some information without signing in. If the router that you're using only offers a web frontend, you'll need to simulate a browser with your program - figure out how HTTP requests and responses are structured, learn how to build a correct HTTP request (along with how security related stuff needs to be structured, if the router requires you to sign in), and figure out how to parse the information you need from the HTTP response from the router.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to detect client and sending form/frame from rmi server ??
 
Similar Threads
Connect to self the long way
how to detect client and sending form/frame ??
j2me app not working on device
detecting ip or mac address
Session timeout in filter detection?