If the resource you are contacting is an HTTP server of some kind, then just use LWP normally, specifying host and port. If it not an HTTP server, you should stay away from LWP and use something else like IO::Socket.
UPDATE: Can you explain why this is not as simple as specifying an IP to LWP?